Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup


This article shows you how to create a datasource pool in GEP during development.

The datasource pool wizard is a handy feature to speed up your development by creating a datasouce connector without any manual coding. Information of the connector you create using this wizard is embedded in the deployment plan of the application as an <ext-module> element.

Note that this wizard has the following 2 limitations:

  • It is only available when you develop a EAR project In Eclipse.
  • It only supports the embedded Apache Derby database.

Adding a new datasource pool

To use the datasource pool wizard in GEP:

  1. Double-click the geronimo-application.xml file under the /META-INF directory of your application to open it in the Geronimo Deployment Plan Editor. The following figure shows the General tab of the editor:

  2. Click the Connector tab, and then open the Database Pools section to see the datasource pools that are defined. The following figure shows the Database Pools section in the Connector tab:

    The following list describes the functions of the three buttons in the Database Pools section:

    • Add - create a new datasouce pool.
    • Remove - remove an existing datasource connector.
    • Edit - reconfigure an existing datasource connector.

  3. Click Add to start a datasource pool wizard, and then fill in the required fields. The following figure shows the database pool wizard:

    The following list introduces the fields in this step of the datasource pool wizard:

    • Connector: specify the location of a Java EE Connector module.
    • External-path: indicate that the module is not part of the enterprise application and must be located by matching the supplied pattern in a Geronimo repository.

  4. Click Next to edit Basic Settings and choose a driver for the datasource pool.

    The basic settings include pool name, database type and database name. Because this wizard only supports embedded Apache Derby database, there are only 2 available options(xa and non-xa) in the Database Type drop-down list and only one driver in the Driver Details field. The driver is org.apache.geronimo.configs/system-database//car.

    The following figure shows the fields in this step:

  5. Click Next to go to the steps of Advanced Pool Settings and Connection Pool Parameters, and then fill in the required fields.

    The following two figures show the fields in these two steps:


  6. Click Finish to create the new datasource pool. The following figure shows the Connector tab with the new datasource pool that is created successfully:

  7. In the toolbar, click Save to save the settings of the new datasource pool.

Now you have created a new datasource pool. You can click the Source tab to review the deployment plan of the connector. The following figure shows a sample deployment plan with a new datasource connector embedded:

Code Block
<?xml version="1.0" encoding="UTF-8"?><app:application application-name="TestEAR" xmlns:app="" 
xmlns:client="" xmlns:conn="" 
xmlns:dep="" xmlns:ejb="" 
xmlns:log="" xmlns:name="" 
xmlns:pers="" xmlns:pkgen="" 
xmlns:sec="" xmlns:web="">
                            <conn:config-property-setting name="Password">manager</conn:config-property-setting>
                            <conn:config-property-setting name="LoginTimeout">5000</conn:config-property-setting>
                            <conn:config-property-setting name="DatabaseName">TestDataBase</conn:config-property-setting>
                            <conn:config-property-setting name="CreateDatabase">true</conn:config-property-setting>
                            <conn:config-property-setting name="UserName">system</conn:config-property-setting>