MySQL is an open source database used by many open source projects and small organizations. To use JBoss 4.0 with MySQL, we first need to put the MySQL driver classes into the CLASSPATH. Copy the .jar file mysql-connector-java-3.0.9-stable-bin.jar to the /server/default/lib directory.
To use the MySQL data source, copy /docs/examples/jca/mysql-ds.xml to the /server/default/deploy directory. Modify the mysql-ds.xml configuration file by setting
Next, we need to set the
[xml]
[/xml]
We also need to set the
[xml]
[/xml]
Finally, we modify login-config.xml with MySQL database settings. Add the following
element to login-config.xml:
[xml]
flag = "required">
jboss.jca:service=LocalTxCM,name=MySqlDS
[/xml]
By modifying the mysql-ds.xml, standardjaws.xml, standardjbosscmp-jdbc.xml, and login-config.xml files, the JBoss 4.0 server is configured to be used with a MySQL database.
no comment untill now