It is true that m3 is called twice, and also it is updating the same row of the
database.
But in my S1, transaction error is thrown immedietly after calling the m3, even
before
the method is entered(i.e.even the "enter" statement also not printed in the
log),
so I am not very sure, if this is a database related problem
"Malhotra, Anish" wrote:
> Sujeevam
>
> >From the code you seem to be calling method3 on S3 twice. Once from the call
> from method2 of S2 and then again from method1 of S1. Maybe you have some
> characteristics in the database that does not allow to call this method
> again (like some primary key voilations etc....)
>
> Anish
>
> -----Original Message-----
> From: Dave Wolf [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 04, 2000 6:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Automatic Transaction rollback
>
> Are you calling
>
> _sessionContext.setRollbackOnly() anywhere in your code? Are the updates
> occuring to the same database? Do any exceptions dump to the console? What
> is the entire stack trace of the exception? Can you dump its stack in S1 so
> we can see it?
>
> Dave Wolf
> Internet Applications Division
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kalam Sujeevan
> > Sent: Sunday, June 04, 2000 8:14 AM
> > To: [EMAIL PROTECTED]
> > Subject: Automatic Transaction rollback
> >
> >
> > Hi All,
> > I am facing a peculiar problem with transaction/rollback.
> > my problem is like this. one of my stateless session bean(S1)
> > calls another
> > stateless session bean(S2), which in turn calls another stateless session
> > bean(S3) which actually updates some data in the database.After
> > this S1 calls S3
> > to update same piece of data in the database.
> > the sequence is like this--
> > 1.S1{
> > 2. Method1(){
> > 3. calls Method2 on S2
> > 4. calls Method3 on S3
> > 5. }
> > 6.}
> >
> > S2{
> > Method2(){
> > calls Method3 on S3
> > }
> > }
> > S3{
> > Method3(){
> > update data in the database
> > }
> > }
> >
> > but I am getting TransactionRolledBackException when I am calling
> > Method3 on S3
> > in S1 on line 4. There is no message given.
> >
> > Can anybody explain, what's going wrong here.
> >
> > App. server is weblogic 5.1, sp3 and Oracle8i and transaction attribute is
> > "required" for all these methods
> >
> > TIA
> > Sujeevan kalam
> >
> > ==================================================================
> > =========
> > 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".
>
> STATEMENT OF CONFIDENTIALITY. The information contained in this electronic
> message and any attachments to this message are intended for the exclusive
> use of the addressee(s) and may contain confidential or privileged
> information. If you are not the intended recipient, please notify
> USPowerSolutions Corporation immediately at (617) 547-3800, or at
> [EMAIL PROTECTED], and destroy all copies of this message and any
> attachments.
>
> ===========================================================================
> 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".