EntityBeans are always container managed transactions.  It takes no action
on your part to request a commit in a container managed transaction.  Simply
returning control without requesting a rollback is an implcicit request for
a commit.  You need do nothing.

Dave Wolf
Internet Applications Division
Sybase

----- Original Message -----
From: "Pooja Keswani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 3:40 AM
Subject: Re: Container Managed Transactions in Entity Beans


> Hi,
> Thanks for the solution.
>  I tried this. but it will require explicit commit if no exception
occures. how do i do it?
> Pls reply soon.
> I'll appreciate it.
>
>
> 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".

Reply via email to