users@glassfish.java.net

Re: RE: UserTransaction lookup failed.

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Aug 2009 07:41:39 PDT

Hi martin,

thanks for replying.

My bean is annotated with

@Stateless
@TransactionAttribute(TransactionAttributeType.MANDATORY)

but lookup with java:comp/UserTransaction is failing with the error:

Caused by: javax.naming.NameNotFoundException: Lookup of java:comp/UserTransaction not allowed for Container managed Transaction beans
        at com.sun.ejb.containers.BaseContainer.checkUserTransactionLookup(BaseContainer.java:691)
        at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:190)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:407)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)

Chris
[Message sent by forum member 'milesy' (milesy)]

http://forums.java.net/jive/thread.jspa?messageID=361398