Guest User

Untitled

a guest
Aug 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  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>
Add Comment
Please, Sign In to add comment