Yes you can although the two files will need different names e.g. mysql1-ds.xml and 
mysql2-ds.xml

Alternatively just duplicate the definition of the data source within the 
'datasources' element in your mysql-ds.xml


  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>MySqlDS1</jndi-name>
  |     <connection-url>jdbc:mysql://127.0.0.1:3306/darranl</connection-url>
  |     <driver-class>org.gjt.mm.mysql.Driver</driver-class>
  |     <user-name>darranl</user-name>
  |     <password>password</password>
  |     <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
  |   </local-tx-datasource>
  | 
  |   <local-tx-datasource>
  |     <jndi-name>MySqlDS2</jndi-name>
  |     <connection-url>jdbc:mysql://127.0.0.1:3306/darranl</connection-url>
  |     <driver-class>org.gjt.mm.mysql.Driver</driver-class>
  |     <user-name>darranl</user-name>
  |     <password>password</password>
  |     <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
  |   </local-tx-datasource>
  | </datasources>
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839092#3839092

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839092


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to