I'd like to run 2 ejb applications with 2 databases under the same JBoss
application server.
<local-tx-datasource>
<jndi-name>MySqlDS1</jndi-name>
<connection-url>jdbc:mysql://rep:3306/DB1</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>uid</user-name>
pwd
</local-tx-datasource>
<local-tx-datasource>
<jndi-name>MySqlDS2</jndi-name>
<connection-url>jdbc:mysql://rep:3306/DB2</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>uid</user-name>
pwd
</local-tx-datasource>
But I don't know how to config standardjbosscmp-jdbc.xml because there is only
one datasource like this
<jbosscmp-jdbc>
java:/MySqlDS
<datasource-mapping>MySqlDSMapping</datasource-mapping>
...
Any suggestions are appreciated.
Richard
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860628#3860628
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860628
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user