EntityBeans can only use container managed transactions.  This means the
container will start a tx on your behalf.  Just mark the methods (all of
them) as requiring a tx.  Then you can rollback with

_entityContext.setRollbackOnly()

If needed.

Dave Wolf
Internet Applications Division
Sybase


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of java
> Sent: Thursday, January 13, 2000 11:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Transcation Control in entity
>
>
> Hi
> what i am doing is getting the transaction via
> entityobject.getUserTransaction() in the first method that i called and
> usertransaction.begin();
>
> but this give an error while deloying that getUserTransaction()
> can only be
> used for bean Managed transactions.
> so how do i start the first transaction
> Ple help as this is urgent
>
> Thanks in advance
>
> ----- Original Message -----
> From: "SUBSCRIBE EJB-INTEREST manoj". <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 04, 2000 11:23 AM
> Subject: Re: Transcation Control in entity
>
>
> > we start a new transaction with method and all  3 call should be
> > transaction required
> >  if one of them is failed then trasanction will be rollback by container
> in
> > entity bean.
> > manoj
> >
> >
> ==================================================================
> =========
> > 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".
>
> ==================================================================
> =========
> 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