Jboss connection config for voltdb?
Jul 9, 2014
Hello all,
My j2ee application(it has 3 web applications) is deployed on jboss server and connects MySQL . The application does lot of transactions.
I got a time problem then i decided to move my database to volt. Then i installed Volt on my virtual machine and i created empty database on the vm.
But i am trying to change following connection on the jboss server.
standalone.xml
.....
<driver name="mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
....
module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
<resources>
<resource-root path="mysql-connector.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
i added another module.xml for voldtb
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.voltdb">
<resources>
<resource-root path="voltdb-4.4.1.jar"/>
</resources>
<dependencies>...</dependencies>
</module>
But i don't know which class will be given for <xa-datasource-class>? Also what dependencies will be required for previous module.xml?
My j2ee application(it has 3 web applications) is deployed on jboss server and connects MySQL . The application does lot of transactions.
I got a time problem then i decided to move my database to volt. Then i installed Volt on my virtual machine and i created empty database on the vm.
But i am trying to change following connection on the jboss server.
standalone.xml
.....
<driver name="mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
....
module.xml
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
<resources>
<resource-root path="mysql-connector.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
i added another module.xml for voldtb
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.voltdb">
<resources>
<resource-root path="voltdb-4.4.1.jar"/>
</resources>
<dependencies>...</dependencies>
</module>
But i don't know which class will be given for <xa-datasource-class>? Also what dependencies will be required for previous module.xml?