I am currently also looking into how to properly use multiple DBs in Jboss (with Hibernate - though with a different focus...),
Here is what might help you:
Use XA-DataSources configuration instead of <local-tx-datasource>
Example:
Code:
<datasources>
<xa-datasource>
<!-- Example for PostgreSQL
-->
<xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">localhost</xa-datasource-property>
<xa-datasource-property name="PortNumber">5432</xa-datasource-property>
<xa-datasource-property name="DatabaseName">myBDName</xa-datasource-property>
<xa-datasource-property name="User">myDBUser</xa-datasource-property>
<xa-datasource-property name="Password">PasswordOfMyDBUser</xa-datasource-property>
<track-connection-by-tx />
<jndi-name>myAppDS1</jndi-name>
</xa-datasource>
</datasources>
and also add the other DataSources analogously, for proper TransactionHandling in JBoss search for XA and JBoss (didn't get that far, yet ;) )
Hope this helps,
Cheers, Arndt