Hi,
We are using two session beans A and B. Bean A has a method M1 with
transaction set to NOT_SUPPORTED and a method M2 with transaction set to
REQUIRED_NEW. Method M1 does some processing and get a new instance of bean
A every time by calling sessionContext.getEJBHome() then calls method M2 in
a loop. Method M2 uses bean B. If we set transaction attribute of B to
MANDATORY or REQUIRED we get an InvalidTransactionException when an
exception is thrown in B during the previous call, but if we set the
transaction attribute to REQUIRED_NEW only the call where the exception is
thrown get rolled back and the processing continue.

thanks

here is the exception:

javax.jts.InvalidTransactionException: Transaction: '965232483804_6541' is
invalid or already completed
        at
weblogic.ejb.internal.MethodDescriptor.setTransaction(MethodDescriptor.java:231)
        at
weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:179)
        at
com.etail.control.ejb.BillManagerBeanEOImpl.chargeCreditCard(BillManagerBeanEOImpl.java:80)
        at
com.etail.control.ejb.BillManagerBeanEOImpl_ServiceStub.chargeCreditCard(BillManagerBeanEOImpl_ServiceStub.java:291)
        at
com.etail.control.ejb.BillManagerBean.launchBillingProcess(BillManagerBean.java:119)
        at
com.etail.control.ejb.BillManagerBeanEOImpl.launchBillingProcess(BillManagerBeanEOImpl.java:48)
        at
com.etail.control.ejb.BillManagerBeanEOImpl_WLSkel.invoke(BillManagerBeanEOImpl_WLSkel.java:84)
        at
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java:261)
        at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:49)
        at
weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(BasicRequestDispatcher.java:128)
        at weblogic.t3.srvr.ExecuteThread.run(ExecuteThread.java:106)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

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