[jboss-user] [JCA/JBoss] - Re: Setting up XA datasource with oranxo driver and RAC

jplater do-not-reply at jboss.com
Thu Nov 13 15:11:40 EST 2008


I found a way to get this working.  Since oranxo doesn't have an api for setting host2 and port2, I added a wrapper class that exposed setHost2() and setPort2().  These methods just called setProperty("host2", ) and setProperty("port2", ) .  Then I setup my ds file like the one I listed above and added <xa-datasource-class> which I set to my wrapper class.  Thanks for your help.


  | <?xml version="1.0"?>
  | 
  | <datasources>
  |   <xa-datasource>
  |     <jndi-name>JNDI_NAME</jndi-name>
  |     ...
  |     <xa-datasource-class>WRAPPER_CLASS</xa-datasource-class>
  |     <xa-datasource-property name="User">USERNAME</xa-datasource-property>
  |     <xa-datasource-property name="Password">PASSWORD</xa-datasource-property>
  |     <xa-datasource-property name="Host">HOST</xa-datasource-property>
  |     <xa-datasource-property name="Port">PORT</xa-datasource-property>
  |     <xa-datasource-property name="Service">SERVICENAME</xa-datasource-property>
  |     <xa-datasource-property name="Failover">True</xa-datasource-property>
  |     <xa-datasource-property name="Host1">HOST1</xa-datasource-property>
  |     <xa-datasource-property name="Port1">PORT1</xa-datasource-property>
  |     <xa-datasource-property name="Host2">HOST2</xa-datasource-property>
  |     <xa-datasource-property name="Port2">PORT2</xa-datasource-property>
  |    ...  
  |   </xa-datasource>
  | </datasources>
  | 
  | 

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

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



More information about the jboss-user mailing list