determines where to find DADX files by looking for a directory that matches its servlet name.

Now we are creating a Web Service DADX Group configuration in the Travel Project to contain all the Web Service files. A DADX Group contains connection (JDBC and JNDI) and other information that is shared between DADX files within the group:

1.Select the Travel project, click File—>New—>Other.

2.In the New Window, create Web Services DADX Group Configuration from the Web Services category. Click Next.

3.Select Travel project, click Add Group, enter TravelGroup as the name, and click Finish.

The group.properties File

The database connection information, and other parameters, are defined in the group.properties file for the group which, in our example, is stored in the WEB-INF/classes/groups/travelGroup directory.

The group.properties file is a standard Java properties files. The properties have the following meanings:

Properties in group.properties:

initialContextFactory The Java class name of the JDNI initial context factory that is used to locate the DataSource for the database.

datasourceJNDI

The JNDI name of the DataSource for the database.

dbDriver

The Java class name of the JDBC driver for the

 

database.

dbURL

The JDBC URL of the database.

userID

The user ID for the database.

password

The password for the database.

namespaceTable

The resource name of the namespace table.

autoReload

The boolean automatic reloading mode.

reloadIntervalSeconds The integer automatic reloading time interval in

 

seconds.

groupNamespaceUri

The URI prefix for automatically generated namespaces

 

for the WSDL and XSD documents.

enableXmlClob

The boolean mode for enabling the XML CLOB stored

 

procedures.

Chapter 9. Developing XML Web services 201

Page 217
Image 217
IBM Version 5 manual Group.properties File