SHARE
TWEET

Untitled

a guest Aug 18th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Creating Connection Pools in Glassfish
  2. <jdbc-connection-pool name="yourDS" ...>
  3.   <description>...</description>
  4.   <property name="DatabaseName" value="..."/>
  5.   <property name="Password" value="..."/>
  6.   <property name="User" value="..."/>
  7.   <property name="ServerName" value="localhost"/>
  8.   <property name="PortNumber" value="3306"/>
  9. </jdbc-connection-pool>
  10.    
  11. asadmin create-jdbc-connection-pool --datasourceclassname    com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource --restype    javax.sql.ConnectionPoolDataSource --property "User=myUser:Password=myPassword:URL=jdbc:mysql://localhost/dbname" myConnPoolName
  12. asadmin create-jdbc-resource --connectionpoolid myConnPoolName jdbc/myConnPoolName
  13.    
  14. create-jdbc-connection-pool --restype=javax.sql.DataSource --datasourceclassname=oracle.jdbc.pool.OracleDataSource --property=user=<USER>:password=<PWD>:url=<YOUR_SERVER>\:<PORT>\:<SID> <DataSourceName>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top