Here is an example managed data source for MySql database.
<connection-pool name="test Connection Pool">
user="user1"
password="user1"
url="jdbc:mysql://144.25.134.24/Test">
</CONNECTION-FACTORY>
</CONNECTION-POOL>
<managed-data-source>
connection-pool-name="test Connection Pool"
jndi-name="jdbc/mysql"
name="mysql"/>
You have to make sure that the factory-class in the connection-factory tag points to the DataSource class for your your database.
No comments:
Post a Comment