Configuring JBoss 4.0 JDBC Connectivity
Subject:   SQL Server 2000
Date:   2004-05-13 05:50:04
From:   dvohra09
Response to: SQL Server 2000

MS SQL Server Database Configuration

To configure JBoss 4.0 with MS SQL Server database, MS SQL Server driver classes are required in the Classpath.Copy MS SQL Server JDBC driver class jar files mssqlserver.jar, msbase.jar, msutil.jar to the server/default/lib dir. To configure with non-xa MS SQL Server datasource copy /docs/examples/jca/mssql-ds.xml to /server/default/deploy dir. To configure with MS SQL Server XA datasource copy /docs/examples/jca/mssql-xa-ds.xml to /server/default/deploy dir. Modify mssql-ds.xml configuration file. Driver Class and Connection URL settings for MS SQL Server JDBC Drivers
Driver Class:
Connection URL:jdbc:microsoft:sqlserver://localhost:1433;
To configure with XA JDBC driver for MS SQL Server modify the mssql-xa-ds.xml configuration file.
Driver Class:
The standardjaws.xml file is configured with Hypersonic database by default. To configure JBoss server with MS SQL Server database modify /server/default/conf/standardjaws.xml configuration file. Set <datasource> and <type-mapping> elements.

<type-mapping>MS SQLSERVER2000</type-mapping>

The standardjbosscmp-jdbc.xml configuration file is configured with Hypersonic database. To configure JBoss server with MS SQL Server modify /server/default/conf/standardjbosscmp-jdbc.xml configuration file. Set the <datasource> and <datasource-mapping> elements.

<datasource-mapping>MS SQLSERVER2000</datasource-mapping>

Modify login-config.xml configuration file with MS SQL Server database settings. Add the following <application-policy/> element to login-config.xml.

<application-policy name = "MSSQLDbRealm">
<login-module code = "" flag = "required">
<module-option name = "principal">sa</module-option>
<module-option name = "userName">sa</module-option>
<module-option name = "password"></module-option>
<module-option name ="managedConnectionFactoryName">

By modifying the mssql-ds.xml, standardjaws.xml, standardjbosscmp-jdbc.xml and login-config.xml the JBoss 4.0 server is configured to be used with a MS SQL Server database.

1 to 1 of 1
1 to 1 of 1