I saw from specification that container will handle the transaction when the method is 
called from remote object. But in my case i am calling the ProcessOneItem()as a local 
method from Process(). Will the transaction will work for this.
Thanks,
Subhendu

-----Original Message-----
From: Sumesh Sadasivan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 10:13 AM
To: subhendukumar mohanty
Cc: [EMAIL PROTECTED]
Subject: Re: Urgent help in ejb transaction



It should be REQUIRED.

-Sumesh.

On Mon, 26 Aug 2002, subhendukumar mohanty wrote:

> What will be the transaction attribute of Process()method.
> 
> 
> 
> -----Original Message-----
> From: Sumesh Sadasivan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 2:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Urgent help in ejb transaction
> 
> 
> On Sun, 25 Aug 2002, subhendukumar mohanty wrote:
> 
> Hi Subhendu,
> 
> AS per your requirement , the ProcessOneItem() should individually commit
> or rollback irrespective of the subsequent calls.
> I think the transaction attribute of ProcessOneItem() should be
> REQUIRES_NEW, so that the outcome of the transaction in that method
> doesn't affect  Process();
> 
> -Sumesh
> 
> > 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".
> >
> 
> --
> 
> ===========================================================================
> 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