Can anybody give me any insight as to what I'm falling foul of here? I
have three stateful session beans, call them A, B and C. The client
maintains a Handle to bean C, which it passes in the AHome.create() call
when it creates an A. A gets the actual object from the Handle, and
holds onto it. The client then calls a method on A, which requires it to
create a B, passing a Handle to C in the call. B then gets C from the
Handle, and attempts to call a method on it. At this point, the
following exception is thrown:

javax.transaction.InvalidTransactionException: Cannot invoke a bean
first in one transaction, and then in another
at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java, Compiled Code)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java, Compiled Code)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java, Compiled Code)

All methods on the three beans are defined as transaction REQUIRED. Can
somebody point me in the direction of a possible solution?

Thanks,

        Amanda S.

===========================================================================
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