Home > Archive > EAserver > November 2005 > UserTransaction jndi lookup









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author UserTransaction jndi lookup
Peter Abbott

2005-11-17, 1:24 pm

hi

I seem to be able to do an InitialContext lookup for a UserTransaction
from the weblayer (servlet/jsp) but it fails with a NotFound exception
when trying from the ejb layer

I am trying:

UserTransaction = (UserTransaction)
ctx.lookup("javax.transaction.UserTransaction");


Anybody have any ideas what this might be?


Pete
Sandip Ghayal

2005-11-18, 8:24 pm

What version of EAServer ?

What is the class you are using for initial context ?

Did you try ctx.lookup("java:comp/UserTransaction")

Thanks,

Sandip Ghayal

Peter Abbott wrote:
> hi
>
> I seem to be able to do an InitialContext lookup for a UserTransaction
> from the weblayer (servlet/jsp) but it fails with a NotFound exception
> when trying from the ejb layer
>
> I am trying:
>
> UserTransaction = (UserTransaction)
> ctx.lookup("javax.transaction.UserTransaction");
>
>
> Anybody have any ideas what this might be?
>
>
> Pete

Peter Abbott

2005-11-19, 3:23 am

4.2.5. I had assumed because I was using the developer version that I
might not be licenced. I tried using a default InitialContext (ie. new
InitialContext) as well as specifying the
com.sybase.ejb. InitialContextFactor
y

Pete

Sandip Ghayal wrote:[color=darkred
]
> What version of EAServer ?
>
> What is the class you are using for initial context ?
>
> Did you try ctx.lookup("java:comp/UserTransaction")
>
> Thanks,
>
> Sandip Ghayal
>
> Peter Abbott wrote:
>
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com