- Run clientConfig.bat (Windows®) or clientConfig.sh (UNIX®) from the
Install_Root /bin directory to start the ACRCT. When the ACRCT
starts, you are prompted to specify the EAR file that contains the
application client.
You can then create client-side data sources, mail providers, JMS
providers, URL providers, and resource environment providers.
- To begin, right-click Data Source Providers, then select New.
The Data Source Provider Properties window is displayed as follows:
- The JDBC™ driver JAR or ZIP files must exist on the client machine.
These files must be specified on the Classpath of the Data Source
Provider. Also, the Implementation class must implement
javax.sql.DataSource (not javax.sql.ConnectionPoolDataSource).
For example, instead of specifying
com.ibm.db2.jcc.DB2ConnectionPoolDataSource for the DB2 Universal
JDBC Driver, specify com.ibm.db2.jcc.DB2DataSource. If the
Implementation class does not implement javax.sql.DataSource, a
NullPointerException is issued when getConnection() is called on the data
source in the application client.
- After creating the data source provider, create the data source.
Expand the newly created Data Source Provider, right-click Data Sources,
then select New.
The Data Source Properties window is displayed as follows:
- Provide values for the fields on the General tab. Also specify any
required Custom Properties for the data source on the Custom tab.
- After creating the data source, save the changes and close the ACRCT.
Before the J2EE application client can access the new client-side data
source, a resource reference to the data source must be configured. The
Application Assembly Tool (AAT), Application Server Toolkit (ASTK) or
WebSphere Studio Application Developer (WSAD) can be used to configure the
resource reference.
After the resource reference is configured, the J2EE application client
can access the new client-side data source by doing an indirect JNDI
lookup, through the java:comp/env context, of the data source. It is not
possible to do a direct JNDI lookup (without going through a resource
reference) of a client-side data source.
|