0 Replies Latest reply on Dec 5, 2005 2:16 PM by adrian.brock

    JBAS-2523 - "Unified" naming context factory

      Discussion thread for:
      http://jira.jboss.com/jira/browse/JBAS-2523

      My comment on an earlier discussion on the dev-list


      On Tue, 2005-09-13 at 16:49, Scott M Stark wrote:
      > Moving all of the other org.jboss.naming classes to the naming module is
      > not possible without either changing names of
      > services/InitialContextFactorys, and this would break existing service
      > descriptors and jndi.properties files/examples.

      I think we should tidyup/consolidate the InitialContext factories
      anyway.

      We already have a number of different implementations doing
      different things (excluding the protocol specific ones):

      org.jnp.NamingContextFactory
      Basic, but also includes hardwired ha policy

      org.naming.NamingContextFactory
      Provides access to the last jndi env

      org.jboss.security.jndi.JndiLoginInitialContextFactory
      Does an automatic login

      org.jboss.iiop.naming.ORBInitialContextFactory
      For automatic orb injection in case somebody uses CosNaming

      My preference is to use JBoss Remoting's notion of a locator
      for the provider url.
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=67844