Hello Klaus,

from what kind of module are you doing this? From a Servlet? Something else?
Only certain modules have access to the TransactionManager...

Regards,
Karl Avedal

Klaus Thiele wrote:

> Hello,
>
> as described in your FAQ i tried the
> (TransactionManager)context.lookup("java:comp/UserTransaction");
> but i get always the exception
>    "java:comp/UserTransaction not found"
> what goes wrong?
>
> questions:
> - why to do
>    tm = (TransactionManager)initial.lookup("java:comp/UserTransaction");
> and not
>    ut = (UserTransaction)initial.lookup("java:comp/UserTransaction");  ?
> - can i change my code to
>    ut = (UserTransaction)tm;  ?
>
> thanks
> klaus
>
> --
> Klaus Thiele - Personal & Informatik AG
> mailto:[EMAIL PROTECTED]
>
>  "There's got to be more to life than compile-and-go."


Reply via email to