Hello,

I've been using local-tx-datasource so far, which has the subelement 
connection-property to set driver specific properties on the connection. Can I 
do this with a xa-datasource? My old configuration was:

   <local-tx-datasource>
  |       <jndi-name>JmsDS</jndi-name>
  |       <connection-url>@jdbc.url@</connection-url>
  |       <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
  |       <user-name>@jdbc.user@</user-name>
  |       <password>@jdbc.password@</password>
  |       <connection-property 
name="v$session.program">jboss:jms</connection-property>
  |       <connection-property 
name="v$session.machine">@host.name@/@user.name@</connection-property>
  |       <min-pool-size>5</min-pool-size>
  |       <max-pool-size>50</max-pool-size>
  |       <idle-timeout-minutes>0</idle-timeout-minutes>
  |    </local-tx-datasource>
  | 
My new configuration is:

   <xa-datasource>
  |       <jndi-name>JmsDS</jndi-name>
  |       <track-connection-by-tx/>
  |       <isSameRM-override-value>false</isSameRM-override-value>
  |       
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
  |       <xa-datasource-property name="URL">@jdbc.url@</xa-datasource-property>
  |       <xa-datasource-property 
name="User">@jdbc.user@</xa-datasource-property>
  |       <xa-datasource-property 
name="Password">@jdbc.password@</xa-datasource-property>
  |       <min-pool-size>5</min-pool-size>
  |       <max-pool-size>50</max-pool-size>
  |       <idle-timeout-minutes>0</idle-timeout-minutes>
  |       
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
  |       <no-tx-separate-pools/>
  |    </xa-datasource>
  |    <mbean 
code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter" 
  |          name="jboss.jca:service=OracleXAExceptionFormatter">
  |      <depends 
optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
  |    </mbean>


The connection properties will show up in the managment console of the Oracle 
DB. I would like to set these properties on the connections used by the XA 
datasource as well, but the xa-datasource element does not allow a 
connection-property sub element. Is there any way to do this?

Thanks!

Regards,

Maarten Winkels

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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to