2.7.5 How to set up resource adapters
To connect to a database from a batch application, use a resource adapter called DB Connector. This subsection describes setting of resource adapter, which is used on a batch server. On a batch server, deploy and use a resource adapter as a J2EE resource adapter.
- Reference note
-
If resource adapter is DB Connector, you can use template file of Connector property file provided with Application Server. If you use the template file of Connector property file, you can edit the Connector property file before importing DB Connector. As a result, the operation of acquiring Connector property file to be edited, by using the server management command (cjgetrarprop or cjgetresprop command) is no more required. Templates in Connector property file are stored in the following locations. Copy and use the template files.
-
In Windows,
Cosminexus-installation-directory \CC\admin\templates\
-
In UNIX,
/opt/Cosminexus/CC/admin/templates/
For details on template files of Connector property file and points to be considered when using the template files, see 4.1.13 Template files of the HITACHI Connector Property File in the uCosminexus Application Server Application and Resource Definition Reference Guide.
-
- Important note
-
To use the resource adapter that was used with Application Server of an earlier version, you must perform migration for the resource adapter. For details about how to perform resource migration, see Chapter 10 in the uCosminexus Application Server Maintenance and Migration Guide.