web server - Borland Technical Publications

web server - Borland Technical Publications web server - Borland Technical Publications

techpubs.borland.com
from techpubs.borland.com More from this publisher
12.11.2014 Views

Configuring JDBC Datasources The Main tab in the content pane captures the essential properties needed to define the chosen database. If the database is known to the DDEditor, it will automatically complete these properties. The Driver Properties and Pool Properties tabs capture some of the information from the Main tab, but also allow you to set any less common properties that do not appear in the Main tab. Chapter 22: Using JDBC 197

Configuring JDBC Datasources To add pool properties, click the Add button and select the property you want to add from the drop-down list under “Name.” Pool Properties are described in “Defining the Connection Pool Properties for a JDBC Datasource” on page 199. The same procedure is used for adding Driver Properties. Consult your database documentation for any properties you need to define. Once you're finished, save the module and dismiss the final modal window. The JNDI Definitions Module is automatically re-deployed to the Partition. Deploying Driver Libraries If a deployed application component contains a JNDI lookup of third party JDBC datasource, vendor libraries are required and must be deployed to the target Partition as a library archive before the lookup is performed. Note that these steps are not necessary if you are using the native all-Java database, JDataStore. When trying to connect to another database like Oracle or Sybase the respective JDBC driver must first be deployed to the target Partition. To deploy a library to multiple partitions do the following: 1 From the Console, select Wizard->Deployment Wizard. This will open the Deployment Wizard. 2 Click on the Add button and navigate to the library file in the resulting window and click OK. The library name should now appear in the selection box in the Deployment Wizard. 3 Click on the Next button. The names of the partitions will appear in the Deployment Wizard window. 4 Select the partitions to which you want to deploy the library and click on the Finish button. The deployment status will appear in a separate window. 5 Click the Close button to close this window. You can verify that the libraries are deployed correctly by checking the partition's Deployed Modules node in the BES Console navigation pane. The name of the library should appear under the Deployed Modules node. 198 BES Developer’s Guide

Configuring JDBC Datasources<br />

The Main tab in the content pane captures the essential properties needed to define<br />

the chosen database. If the database is known to the DDEditor, it will automatically<br />

complete these properties.<br />

The Driver Properties and Pool Properties tabs capture some of the information from<br />

the Main tab, but also allow you to set any less common properties that do not appear<br />

in the Main tab.<br />

Chapter 22: Using JDBC 197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!