Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1111

InitialContextFactory for modeshape

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.5.0.Beta1
    • 2.2.1.GA
    • Common
    • None

      Could be useful a default InitialContextFactory in modeshape so a client can call it through jndi. Here an example:

      Hashtable<String, Object> jndiContext = new Hashtable<String, Object>();
      jndiContext.put("java.naming.factory.initial","org.modeshape.common.naming.DummyInitialContextFactory");
      jndiContext.put("java.naming.provider.url","localhost");
      InitialContext initialContext = new InitialContext(jndiContext);

      It is enough to add two classes in modeshape-common project.

            rhauch Randall Hauch (Inactive)
            luca.stancapiano@vige.it Luca Stancapiano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: