try this
UserTransaction ut==sessionContext.getUserTransaction();
ut.begin();
u must set the sessionContext variable in the setSessionContext() method.
regards,
mani
----- Original Message -----
From: "Pratap Dinesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 3:48 PM
Subject: JTA
> I wish to invoke UserTransaction using the following code:
>
> Context ic = new InitialContext();
> UserTransaction ut = (UserTransaction)
> ic.lookup("javax.transaction.UserTransaction");
> ut.begin();
>
> This snippet is giving me a runtime Exception ... What is the problem in
> this code.. Can't see through...
>
> Need help on this one..
> Thanks
>
> Dinesh
>
>
===========================================================================
> 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".