My EJB server *does* support JTA. Do you get the current UserTransaction and
type cast it to javax.transaction.Transaction? This looks promising.

When you mention SessionSynchronization, I am not using any StaefulSessionBeans
currently. Do you end up creating one from a SLSB? If so, doesn't this cause
other problems with timeouts and such? I think that this practice is
discouraged.

thank you,
jim

----- Original Message -----
From: "Victor Langelo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 29, 2000 10:55 AM
Subject: Re: Hitching a ride on a context?


> Jim,
>
> We've had pretty good luck associating objects with a thread. I use the
session
> bean's SessionSynchronization interface to setup and remove the association.
This
> has worked for use in three different EJB servers so far.
>
> If you EJB server supports JTA you'd be better off using the enlistResource
method
> of javax.transaction.Transaction.
>
> --Victor Langelo
>
>
> James Cook wrote:
>
> > Is there a way to associate a Java object to a transaction? I want to attach
a
> > Java object to some kind of context that will be available to all method
calls
> > invoked in my EJBs.
> >
> > jim
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to