|
| Home > Apache Geronimo v2.2 > 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:
<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
where <geronimo_home> is the installation directory of Geronimo.
<geronimo_home>/bin/deploy.sh -u system -p manager deploy yourapp.ear sample-mysql-xa-ds-plan-embeded.xml
where <geronimo_home> is the installation directory of Geronimo.
The transaction configuration element is something like:
<connectionmanager> <xa-transaction> <transaction-caching/> </xa-transaction> ... </connectionmanager>
And for local transaction:
<connectionmanager> <local-transaction/> ... </connectionmanager>
|
|
Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |