This content has been marked as final.
Show 1 reply
-
1. Re: Multiable JNDI names to one XA datasource
webmarck Jun 15, 2008 3:10 AM (in response to webmarck)Found the answer myself :-)
<datasources> <xa-datasource> <jndi-name>jdbc/aConnection</jndi-name> <track-connection-by-tx/> <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">someDB</xa-datasource-property> <xa-datasource-property name="User">someUser</xa-datasource-property> <xa-datasource-property name="Password">somePassword</xa-datasource-property> </xa-datasource> <mbean code="org.jboss.naming.NamingAlias" name="jboss.jmx:alias=aAlias"> <attribute name="FromName">java:jdbc/aAlias</attribute> <attribute name="ToName">java:jdbc/aConnection</attribute> </mbean> <mbean code="org.jboss.naming.NamingAlias" name="jboss.jmx:alias=anotherAlias"> <attribute name="FromName">java:jdbc/anotherAlias</attribute> <attribute name="ToName">java:jdbc/aConnection</attribute> </mbean> </datasources>