HOWTO Add a JDBC DataSource/JNDI to GlassFish

Use asadmin with option create-jdbc-connection-pool first:

asadmin create-jdbc-connection-pool --datasourceclassname org.apache.derby.jdbc.EmbeddedDataSource --property databaseName=\$\{com.sun.aas.instanceRoot\}/databases/tutegodb:connectionAttributes=\;create\=true tutegoPool


Use asadmin again to install the actual JNDI name:



asadmin create-jdbc-resource --connectionpoolid=tutegoPool jdbc/tutego


To remove the pool and all attached JNDI names:



asadmin delete-jdbc-connection-pool --cascade tutegoPool

Labels:

0 Antwort(en) auf ›HOWTO Add a JDBC DataSource/JNDI to GlassFish‹

Kommentar veröffentlichen