2 Replies Latest reply on Aug 3, 2015 1:07 PM by Wolf-Dieter Fink

    ConnectionFactory lookup inside EJB @PostConstruct

    Unni N Newbie

      I am doing a Connectionfactory lookup from the an EJB @PostConstruct method. It is giving me service jboss.naming.context.java.ConnectionFactory: javax.naming.NameNotFoundException: during start up.

      But when I try to deploy the EJB after the server started everything is fine. I think this is because of the order of deployment. By the time the @PostConstruct executes, the connectionfactory is still not bound.


      Any solution to include these dependencies?