2 Replies Latest reply on May 10, 2011 4:26 PM by Elias Ross

    Threads inheriting ENC in JBoss-6.0.0.Final

    Juergen H Newbie

      Recently deployed a legacy web app running on JBoss-4.2.3.GA to JBoss-6.0.0.Final standard config.


      One issue I ran into was a change in how Environment Naming Context (ENC) java:comp/env is handeled. In JBoss-4.2.3.GA an init-Thread created by an ENC aware MainDeployer-Thread would also have ENC with JNDI lookup on comp/env succeeding.


      In JBoss-6.0.0.Final the same init-Thread would not have an ENC it seems


      Tried to switch to AS managed Threading, tried AS6 introduced Thread Pool Configuration as described in:


      But it appears as if those threads do not get an ENC as well (which makes me wonder what good they will do in an EAR in any case)


      So what other options do I have for async init with ENC on JBoss-6.0.0.Final ?


      * maybe EJB Singleton (ejb introduced into legacy web app) ?


      thx for feedback, jürgen