[jboss-user] [JNDI/Naming/Network] - Re: Multiable JNDI names to one XA datasource

webmarck do-not-reply at jboss.com
Sun Jun 15 03:10:04 EDT 2008


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>
  | 



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

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



More information about the jboss-user mailing list