Create and Deploy a MySQL datasource
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: MySqlDS jdbc:mysql://localhost:3306/jboss com.mysql.jdbc.Driver jboss password 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'