이 콘텐츠는 선택한 언어로 제공되지 않습니다.
2.2.2. Installing the JDBC Driver and Deploying the datasource
To make the JDBC driver classes available to the JBoss Enterprise Application Platform, copy the archive
mysql-connector-java-5.1.8-bin.jar from the Connector/J distribution to the lib directory in the default server configuration (assuming that is the server configuration you’re running).
Then create a file in the deploy directory called
mysql-ds.xml with the following datasource configuration. Note that the databse user name and password corresponds to the MySQL user that we created in the previous section:
To ensure that you have correctly configured the datasource in
$JBOSS_HOME/server/$PROFILE/deploy folder, start the server and you will notice messages like these in the logs:
INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to JNDI name 'java:MySqlDS'
INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to JNDI name 'java:MySqlDS'
Note
Configuring other datasources is a similar process.