Apache Geronimo also provides mechanisms to reuse database pool configuration from other application servers such a JBoss and BEA Weblogic. In the following section, we will see how we can import a database pool from JBoss.
Assume that we have a JBoss plan named test-ds.xml
. This plan is provided in the samples\Chapter-3 Database Connectivity\jboss-plan
directory. The contents of the plan are shown below:
<?xml version="1.0" encoding="UTF-8"?> <datasources> <local-tx-datasource> <jndi-name>TestDS</jndi-name> <connection-url>jdbc:hsqldb:hsql://localhost:1701 </connection-url> <driver-class>org.hsqldb.jdbcDriver</driver-class> <user-name>system</user-name> <password>manager</password> <min-pool-size>5</min-pool-size> <max-pool-size>20</max-pool-size> <idle-timeout-minutes>10</idle-timeout-minutes> <track-statements/> </local...