0 Replies Latest reply on Jun 5, 2003 12:39 PM by marks

    isolation of enterprise naming context

    marks Newbie

      I had a question regarding the JNDI implementation in JBoss and how it achieves isolation of a ENC provided for components.

      It seems to be that the isolation is achieved by relying on thread affinity - the code below in the getObjectInstance of the ENCFactory class seems to suggest so:

      // Get naming for this component
      ClassLoader ctxClassLoader = Thread.currentThread().getContextClassLoader();

      Will this work in the face of an instance pool being served by multiple threads - all calls into JNDI by a component (EJB) may not be from the same thread - the calls a EJB makes to get its various environment entries may not be all from the same thread - will the above scheme work then?

      what am i missing?