One correction to my question: I am calling the ProcessOneItem() method from Process() as local call not by remote call. Both methoda are part of remote interface.
-----Original Message----- From: ���� [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 25, 2002 8:00 PM To: subhendukumar mohanty Subject: Re: Urgent help in ejb transaction ProcessOneItem should be set as TX_REQUIRES_NEW. >Hi all, > >I am having some problem in ejb transaction. > >Requirement: > >In my web application the screen shows number of items to process. User can select >more than one item and press button process. The requirement is , the process of each >item is individual transaction. If one of the process of item fails it should >rollback only that item but not other item. > >Implementation: > >When user click process , system calls the Process() method of ejb(stateless) and >pass the list of items. In the process method I start a loop and for each item I call > another method called ProcessOneItem() of same ejb. Both the methods are part of ejb >remote interface. I have set the transaction attribute of Process() (Parent method) >as TX_NOT_SUPPORED and the transaction attribute of ProcessOneItem() as TX_REQUIRED. >But when some exception occurred in processing one item , it did not rollback the >item. I tried to change the transaction attribute of the parent method to TX_SUPPORT >, but still it did not work. > >Environment: > >Websphere 3.5.5 >Ejb 1.0 > >Anybody can advice me how to achieve my requirement. > >Thanks, >Subhendu > >==========================================================================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". [EMAIL PROTECTED] ==========================================================================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".
