Venkat,
just reading this a bit late, but can you please briefly describe your runtime enviroment. From your description, I am
getting the impression that you want to use Castor in J2EE mode ? If that's the case, what's your application server ?
Rather than trying to configure XA-compliant DataSources, etc. yourself, you could rely on the features of the
application server and simply use these features from within Castor by the means of a JNDI lookup.
Werner
On Mon, 18 Aug 2003 11:50:47 +0530, Venkat Dosapati wrote:
>Sorry patrick,
>
>I came to know that we can configure datasources from mapping.xml.
>I will have a try and will ask you if I get any problems.
>
>thanx
>Venkat
>
>----- Original Message -----
>From: "Venkat Dosapati" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, August 18, 2003 9:37 AM
>Subject: Re: [castor-dev] using TransactionManager & XA Resource Pool
>
>
>> Hi pattrick,
>> Thank you for your response!
>>
>> At the same time I want to use connection pool which can be like
>> XAPool(XA-compliant).
>> How can I use that with addition to TransactionManager in this JDO.
>>
>> thanx
>> Venkat
>> ----- Original Message -----
>> From: "Patrick van Kann" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, August 13, 2003 7:12 PM
>> Subject: Re: [castor-dev] using TransactionManager & XA Resource Pool
>>
>>
>> > You can call setTransactionManager(String
>> > jndiNameOfTransactionManagerInYourJ2EEServer) on the JDO object.
>> > Typically you would do this on a JDO instance that itself would then be
>> > registered in JNDI for use by your app.
>> >
>> > You would then manage the transactions in castor using a UserTransaction
>> > obtained from the TransactionManager managing JDO.
>> >
>> > UserTransaction ut = ( UserTransaction )
>> ic.lookup( "java/utJndiAddress" );
>> > DataObjects jdo jdo = ( DataObjects )
>>
>p(
>> > "java/jdoJndiAddressOfJDOInstanceUponWhichYouHaveSetTransactionManagerAbove"
>> > );
>> > ut.begin()
>> > Database db = jdo.getDatabase();
>> > file://...do your stuff
>> > ut.commit();
>> > return data;
>> >
>> > Note that you must begin your tranny before you get the Database from
>> > the DataObject.
>> >
>> > Hope this helps.
>> >
>> > Patrick
>> >
>> >
>> > Venkat Dosapati wrote:
>> >
>> > >hi all,
>> > >
>> > >Can I use JTA & JTS compliant Transaction Manager & XA-compliant connection
>> > >pool
>> > >with Castor JDO. where can set the configuration to use them.
>> > >
>> > >In my case I want to use JOTM [
>TransactionManager] & XAPool [XA resource
>> > >pool]
>> > >with Castor JDO.
>> > >
>> > >Did anyone try this?
>> > >
>> > >thanks
>> > >Venkat
>> > >
>> > >-----------------------------------------------------------
>> > >If you wish to unsubscribe from this mailing, send mail to
>> > >[EMAIL PROTECTED] with a subject of:
>> > > unsubscribe castor-dev
>> > >
>> > >
>> >
>> > -----------------------------------------------------------
>> > If you wish to unsubscribe from this mailing, send mail to
>> >
>> [EMAIL PROTECTED] with a subject of:
>> > unsubscribe castor-dev
>>
>> -----------------------------------------------------------
>> If you wish to unsubscribe from this mailing, send mail to
>> [EMAIL PROTECTED] with a subject of:
>> unsubscribe castor-dev
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
- Re: [castor-dev] using TransactionManager & XA Resourc... Werner Guttmann
- Re: [castor-dev] using TransactionManager & XA Re... Venkat Dosapati
