Caucho Forums  

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

Go Back   Caucho Forums > Resin

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


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 :
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
Old 11-25-2011, 05:09 PM
alex alex is offline
Join Date: Aug 2009
Posts: 218

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

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 10:52 PM.

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