216 Managing Information Access to an EIS Using J2EE and Services Oriented Architecture
– jms.UserName, if the WebSphere MQ provider is remote, you need to
enter the user name that has access to the queue manager.
– jms.Password, if the WebSphere MQ provider is remote, you need to
enter the password for the user that has access to the queue manager.
– MessageFileName, which is JDBCConnector.txt.
2. On the Connector Specific tab, enter the following:
– ApplicationUserName, database user
– ApplicationPassword, database password
– CheckForEventTableInInit, false
– DatabaseURL, jdbc:db2:stocksys
– JDBCDriverClass, COM.ibm.db2.jdbc.app.DB2Driver
– RDBMSVendor, DB2
– EventTableName, null
3. On the Supported Business Objects tab, add the STOCKINFO business
object.
4. Save the configuration to the project by pressing Ctrl+S.
5. Save a copy of the configuration to a file, to be used to run the JDBC Adapter
later on, by pressing Ctrl+Alt+F. Save the file to the filename
C:ITFJDBCAdapter.cfg.
Configure the JDBC adapter start script
Now, you configure the start script to find the driver that is required to connect to
the DB2 database.
1. Right-click the start_JDBC.bat file found in the default JDBC directory,
C:IBMWebSphereconnectorsJDBC.
2. Click Edit to edit the file.
3. Modify the JDBCDRIVERPATH variable in the script to include the
<db2install>javadb2java.zip file.
4. Add a new variable JDBCDRIVERLIB to include the <db2install>in
directory.
5. Set the JDBCDRIVERLIB as the last value in the -Djava.library.path JVM
argument at the end of the script.