| 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:
>
|
|
|
|