Dear all,

I'm trying to make the Oracle XA Datasource working with jboss 3.2.3.

To do so I modified the oracle-xa-ds.xml file and set the pad value to true 
and I'm using the oracle thin driver to access my database.

During the deployement I can see the XAOracleDS (which is the jndi name I 
gave) is well deployed and bound. I can see it int the JNDI view from the JMX 
Console and here comes the problem : I have
+- XAOracleDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)

When I lookup the jndi name and try to get a XADataSource I get a class cast 
excption, while casting to a simple DataSource work, after some introspection 
I saw that WrapperDataSource is implenmenting DataSource, so here it my 
question how do I get a XADataSource from it ?

Thank you very much for your time, please find following the oracle-xa-ds.xml 
file I use.

<datasources>
  <xa-datasource>  
    <jndi-name>XAOracleDS</jndi-name>
    <track-connection-by-tx>true</track-connection-by-tx>
    <isSameRM-override-value>false</isSameRM-override-value>
    <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
    
<xa-datasource-propertyname="URL">jdbc:oracle:thin:@ip:port:SID</xa-datasource-property>
    <xa-datasource-property name="User">axel</xa-datasource-property>
    <xa-datasource-property name="Password">axel</xa-datasource-property>
    
<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.xa.oracle.OracleXAExceptionFormatter" 
         name="jboss.jca:service=OracleXAExceptionFormatter">
    <depends 
optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
  </mbean>
</datasources>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to