Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-59

No reuse of naming contexts with scoped EJB client context

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.0.0.Beta1, 1.0.17.Final
    • 1.0.15.Final
    • None

    Description

      When I create an InitialContext with the description of https://community.jboss.org/message/764451#764451 and even when I reuse the InitialContext instance a new EjbNamingContext is created and regsistered for each lookup.

      I'm not a committer, so I add possible workarounds here:

      Make a lookup to "ejb:" and use the resulting EjbNamingContext instance instead of InitialContext. But this may be broken because you don't get to know when its closed.

      Call ejbURLContextFactory.getObjectInstance directly, but this cuts off all JNDI handling by the JDK.

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            bkoecke Bernd Köcke (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: