4.2.1 Importing the DB Connector
To import the DB connector, execute the following command:
- Organization of this subsection
(1) Execution format
cjimportres [server-name] [-nameserver provider-URL] -type rar -f file-path
Specify the RAR file in file- path.
The RAR file is saved in the following directory:
-
In Windows:
Cosminexus-installation-directory\CC\DBConnector\
-
In UNIX:
/opt/Cosminexus/CC/DBConnector/
When you import the DB Connector as a resource adapter, specify one of the following RAR files based on the transaction management method and the type of JDBC driver that will be used. Note that you cannot use a global transaction for connecting to XDM/RD E2 or SQL Server.
-
DBConnector_HiRDB_Type4_CP.rar
DBConnector_HiRDB_Type4_CP.rar is a DB Connector for HiRDB Type4 JDBC Driver. Choose this RAR file when you use a local transaction or when you do not use transaction management (when LocalTransaction or NoTransaction is specified in the transaction support level).
Connect to HiRDB and XDM/RD E2 using the ConnectionPoolDataSource of HiRDBType4 JDBC Driver.
-
DBConnector_HiRDB_Type4_XA.rar
DBConnector_HiRDB_Type_XA.rar is a DB Connector for HiRDB Type4 JDBC Driver. Choose this RAR file when you use a global transaction (when XATransaction is specified in the transaction support level).
Connect to HiRDB by using XADataSource of HiRDB Type4 JDBC Driver.
-
DBConnector_Oracle_CP.rar
The DBConnector_Oracle_CP.rar is a DB Connector for Oracle JDBC Thin Driver. Choose this RAR file when you use a local transaction or when you do not use transaction management (when LocalTransaction or NoTransaction is specified in the transaction support level).
Connect to Oracle by using ConnectionPoolDataSource of Oracle JDBC Thin Driver.
-
DBConnector_Oracle_XA.rar
The DBConnector_Oracle_XA.rar is a DB Connector for Oracle JDBC Thin Driver. Choose this RAR file when you use a global transaction (when XATransaction is specified in the transaction support level).
Connect to Oracle by using XADataSource of Oracle JDBC Thin Driver.
-
DBConnector_SQLServer_CP.rar
The DBConnector_SQLServer_CP.rar is a DB Connector for SQL Server JDBC Driver. Choose this RAR file when you use a local transaction or when you do not use transaction management (when LocalTransaction or NoTransaction is specified in the transaction support level).
Connect to SQL Server by using ConnectionPoolDataSource of SQL Server JDBC Driver.
(2) Example of execution
cjimportres MyServer -type rar -f DBConnector_HiRDB_Type4_CP.rar
For details on the cjimportres command, see cjimportres (import resource) in the uCosminexus Application Server Command Reference Guide.