Home > Documentation > Configuring and administering > Configuring services > Configuring datasource > Configuring a MySQL datasource |
This articles shows you how to configure a mysql datasource in Geronimo. Geronimo is embedded with mysql resource adapters supporting both local and XA transactions, you need to install mysql JDBC drivers by yourself as instructed.
There are two ways to configure a mysql datasource:
mysql/mysql-connector-java/5.1.7/jar
.<geronimo_home>/bin/deploy.sh -u system -p manager deploy <GERONIMO_HOME>/repository/org/tranql/tranql-connector-mysql-xa/1.2/tranql-connector-mysql-xa-1.2.rar sample-mysql-xa-ds-plan-standalone.xml
mysql/mysql-connector-java/5.1.7/jar
.<geronimo_home>/bin/deploy.sh -u system -p manager deploy yourapp.ear sample-mysql-xa-ds-plan-embeded.xml
The transaction configuration element is something like:
<connectionmanager> <xa-transaction> <transaction-caching/> </xa-transaction> ... </connectionmanager>
And for local transaction:
<connectionmanager> <local-transaction/> ... </connectionmanager>
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |