Wrap a transaction around your operation. This way, the transaction will begin when your operation starts, and commits only when your operation is complete. Unless, you are accessing your entity beans from a client layer. This is one of the reasons why you need to use Stateless session beans to wrap your model.
You should never have to touch the autoCommit property of a connection. -AP_ http://www.myprofiles.com/member/profile/apara_personal -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb Sent: Saturday, May 25, 2002 10:44 PM To: Orion-Interest Subject: Re: How do you tell orion not to autocommit? Hi Keith, If you are using Bean managed persistence, then get the connection object using jndi lookup, then use connection.setAutocommit(false). I am not aware how to do this in container managed persistence.Can some great guys explain this?Wish you a good day. thanks, Prasanth "God gives you more than you expect" >From: "Keith Kwiatek" <[EMAIL PROTECTED]> >Reply-To: Orion-Interest <[EMAIL PROTECTED]> >To: Orion-Interest <[EMAIL PROTECTED]> >Subject: How do you tell orion not to autocommit? >Date: Wed, 17 Apr 2002 07:16:48 -0400 > >Hello, > >I am running orion with a datasource and some jsp's with some jdbc beans. >When I insert/update/delete it seems to be set to autocommit. How do I tell >orion not to autocommit? > >Thanks, >Keith > > > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com