3 Replies Latest reply on Feb 16, 2006 4:23 AM by Vilmundur Pálmason

    EJBContext not bound

    Vilmundur Pálmason Newbie

      Hi,

      I wanted to access EJBContext from a utility method and tried to use JNDI lookup :

      new InitialContext().lookup("java:comp/EJBContext")
      

      This throws NameNotFoundException.

      I get the same exception when I move the code to a @PostConstruct method inside a Stateless bean.

      Isn't this supposed to work (according to the PFD section 15.5) ?

      I am using 4.0.3SP1 with EJB3 RC5.

      Thanks,