|
| Home > Apache Geronimo v3.0 > Documentation > Configuring and administering > Configuring services > Configuring datasources > 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 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 the following:
<connectionmanager> <xa-transaction> <transaction-caching/> </xa-transaction> ... </connectionmanager>
And for local transaction:
<connectionmanager> <local-transaction/> ... </connectionmanager>
|
|
Privacy Policy - Copyright © 2003-2013, The Apache Software Foundation, Licensed under ASL 2.0. |