Well to answer to your question

the correct syntax for this is

  ejbContext.getUserTransaction().begin();

you must do this on one line only,



--- Hrair Karaboyadjian <[EMAIL PROTECTED]> wrote:
> Hi,
> I want to write a transactional EJB (session and
> entity), I read the J2EE
> Blueprints and try the sample line as mentioned like
> UserTransaction ut =
> ejbContext.getUserTransaction();
> ut.begin();
> // perform transactional work here
> ut.commit();
>
> but it didn't work, I get in the log file of my
> application server this:
>
> May 22 14:18:07 2001: AFLIB Message: 18209/11/0:
> Transaction::Commit():
> Transaction was marked ABORTONLY - Aborting!
>
>
> I don't if this message is correct or something is
> going wrong
>
> thank you if you can help me
>
> Hrair Karaboyadjian
> Software Engineer
>
> DC Soft S.A.L.
> Tel:  +961-1-385425
> Fax:  +961-1-385428
> P.O.Box 11-337
> Beirut - Lebanon
> email: mailto:[EMAIL PROTECTED]
> http://www.dcsoftintl.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".
>


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.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".

Reply via email to