WHOA!
If you are using container managed transactions, or even bean managed via te
UserTransaction object DO NOT go around tinkering with the state of the
transaction on the Connection interface itself. The app server is managing
the tx, and tinkering its state will likely lead your application into an
inconsistant state.
Dave Wolf
Internet Applications Division
Sybase
----- Original Message -----
From: "Pooja Keswani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 4:50 AM
Subject: Re: Container Managed Transactions in Entity Beans
> Hi,
>
> Thank you very much. It works fine.
> Thanks once again..
>
>
> On Fri, 19 January 2001, G Ramasubramani wrote:
>
> >
> > Pooja,
> >
> > In your getDBConnection method you need to do this change -
> >
> > connection = ds.getConnection();
> > connection.setAutoCommit(false);
> >
> > Also, in your ejbCreate() method you better close the connection in
a finally{} block.
> >
> > This should take care of the issue.
> >
> > Rama
> >
> >
> > ********************************************************************
> >
> > I've got plenty of common sense. I just choose to ignore it.
> > - Calvin
> > ********************************************************************
> >
> >
===========================================================================
> > 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".
>
>
> Chequemail.com - a free web based e-mail service that also pays!!!
> http://www.chequemail.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".
>
>
===========================================================================
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".