Subject Re: [Firebird-Java] Re: XADataSource implementation
Author David Jencks
On 2002.04.25 14:49:17 -0400 rrokytskyy wrote:
> > The better way to do this is to register a synchronization object
> > with the tx manager for the work in cache in a transaction and in
> > the beforeCompletion call do all the db work.
>
> where do I get the transaction instance? is there any way to get it
> from jndi having only xid? synchronization would be the best.

The xid is kind of irrelevant. You need the tx manager, then call
txmanager.getTransaction(). The tx is associated with the current thread.
You should be able to keep all such calls inside your cache.

In jboss you get the txmanager under java:/TransactionManager. I have been
told both that this is and is not a standard. I'd like to know what WAS
and WL do if you can find out.


thanks
david jencks
>
> Thanks!
> Roman
>
> P.S. let's close this discussion here, it goes off-topic. I will try
> to find out this issue and will ask next questions in jboss forum.
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>