uCosminexus Application Server, System Setup and Operation Guide
Use DB Connector as the resource adapter to connect to a database from a J2EE application. Also, to connect to a database by using DB Connector, you need a JDBC driver that supports the database.
This subsection describes the settings for the database connection environment required for connecting to SQL Server by using DB Connector. Use the JDBC driver for SQL Server as the JDBC driver. Implement these settings on the host to which the J2EE server is allocated.
For the notes on setting up a database, see 4.1.9 Notes on setting up a database.
When using a DB Connector to connect to SQL Server, install SQL Server on the database machine and complete the initial settings. For details, see the SQL Server documentation. You must also set the authentication mode to connect to SQL Server. You specify the authentication mode during installation, but you can change this mode even after the installation. The authentication mode of SQL Server that can be specified in Application Server is classified into two types, mixed mode and Windows authentication mode, depending on the authentication method that can be set by you. This section describes the authentication mode and authentication method for each type.
The authentication mode of SQL Server that can be specified in Application Server is classified into two types, mixed mode and Windows authentication mode, depending on the authentication method that can be set by you. This section describes the authentication mode and authentication method for each type.
When using a DB Connector to connect to SQL Server, install SQL Server on the database machine and complete the initial settings. For details, see the SQL Server documentation. You must also set the authentication mode to connect to SQL Server. You specify the authentication mode during installation, but you can change this mode even after the installation.
The authentication mode of SQL Server that can be specified in Application Server is classified into two types, mixed mode and Windows authentication mode, depending on the authentication method that can be set by you. This section describes the authentication mode and authentication method for each type.
Acquire the JAR file of the SQL Server JDBC Driver of the version supported by Application Server, and then specify the class path of the J2EE server. This section describes how to acquire the JAR file and specify the class path.
<?xml version="1.0" encoding="UTF-8"?> <model-definition xmlns="http://www.cosminexus.com/mngsvr/schema/ModelDefinition-2.5"> <!-- Web system attribute definition --> <web-system> <name>MyWebSystem</name> : <!-- physical tier (combined-tier) definition --> <tier> <tier-type>combined-tier</tier-type> <!-- Setting for using SQL server --> <configuration> <logical-server-type>j2ee-server</logical-server-type> <param> <param-name>add.class.path</param-name> <param-value>Specify-path-of-JAR-file-for-SQL-Server-JDBC-Driver</param-value> <!-- Setting for using Windows authentication --> <param-name>add.library.path</param-name> <param-value>Specify-path-of-directory-storing-dll-file-for-SQL-Server-JDBC-Driver</param-value> </param> </configuration> </tier> : </web-system> <host> : </model-definition> |
Set the timeout of SQL Server as and when required. For details on the timeout settings, see 8.6.6 Setting up a timeout of the database in the uCosminexus Application Server System Design Guide.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.