Hi,
Have you guys tried to use Bean managed tx for the first session bean ?
Just my one cent ...
Thomas
Shiv Kumar wrote:
> Hi
>
> I am using CMP entity beans in the same scenario, same tx attribute settings
> etc. But even then the Rollback does not happen. Any ideas?
>
> Regards.
> --
> shiv
> [EMAIL PROTECTED]
>
> Virgil Lee wrote:
>
> > Hi,
> >
> > I have a session bean function that calling three entity beans as a unit of
> > work.
> > The function simply calls the entity beans' create function one by one.
> > Suppose when calling the third one it throws an exception, that case the
> > whole transaction should be rolled back.
> > I got the remote exception from the client calling the session bean
> > function:
> > Transaction was rolled back: javax.ejb.EJBException; nested exception is:
> > javax.ejb.EJBException
> >
> > which is normal I suppose. But the fact is when I check back the database,
> > nothing was rolled back, the newly inserted records for the first two entity
> > beans are there.
> >
> > The transaction type is container and I've set the session bean's
> > trans-attribute as Required and others as Supports.
> > I'm using BMP, and every call to the database I need to make a connection
> > and close it afterward. It seems to me that when the connection has been
> > closed, it commits everything and the container cannot roll anything back.
> >
> > I'm struggling on this for a period of time already, any clues or help are
> > much appreciated.
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.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".
--
The statements and opinions expressed here are my own and do not
necessarily represent those of Russel Metals Inc.
Thomas Yan
System Administrator
Russel Metals Inc.
Tel: 905 819 7779
Fax: 905 819 7269
===========================================================================
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".