Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Resin

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2011, 02:12 PM
yannick yannick is offline
Junior Member
 
Join Date: Nov 2011
Posts: 1
Default Get a XADataSource

Hi,

I'd like to use XADataSource in my application.

I'm using resin 3.1.3, and put the following lines in my resin.xml :
Code:
    <database>
         <jndi-name>jdbc/test-xa</jndi-name>
         <xa>true</xa>
         <driver>
               <type>oracle.jdbc.xa.client.OracleXADataSource</type>
               <url>jdbc:oracle:thin:.....</url>
               <user>....</user>
               <password>....</password>
         </driver>
         <prepared-statement-cache-size>32</prepared-statement-cache-size>
         <max-connections>15</max-connections>
         <max-idle-time>30s</max-idle-time>
    </database>
When I'm trying to get a XADataSource, resin take me a DBPool (extends DataSource), which is useless for me...

How to get a XADataSource (for use with JTA outside ejbs) ?
Reply With Quote
  #2  
Old 11-25-2011, 06:09 PM
alex alex is offline
Administrator
 
Join Date: Aug 2009
Posts: 218
Default

Can you elaborate why you need an instance of XADatasource please?

Normally, you shouldn't need one, because distributed transactions should be handled by the container via providing a UserTransaction object. The javax.transaction.UserTransaction object is looked up from JNDI.

UserTransaction object manages distributed transactions on behalf of the client's code.

Note: we will be releasing 3.1.13 with some important fixes for handling distributed transaction recover scenario for Oracle. I recommend that you upgrade to 3.1.12 at least, as it provides a few important fixes in recovering failed distributed transactions.
Reply With Quote
Reply

Tags
jndi, resin, xadatasource

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.