2 Replies Latest reply on Nov 29, 2009 4:11 PM by Maciej Madej

    File System External Config

    Maciej Madej Newbie

      Hi,

      I've configured ExternalConfig as follow:

      <mbean code="org.jboss.naming.ExternalContext"
       name="jboss.jndi:service=ExternalContext,jndiName=external/fs">
       <attribute name="JndiName">external/fs</attribute>
       <attribute name="Properties">
       java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
       java.naming.provider.url=file:///D:/JBoss/jboss-5.1.0.GA
       </attribute>
       <attribute name="InitialContext">javax.naming.directory.InitialDirContext</attribute>
       <attribute name="RemoteAccess">false</attribute>
      </mbean>



      Now I'm accesing my directory:

      InitialContext iniCtx = new InitialContext();
       Context c = (Context) iniCtx.lookup("external/fs");
       System.out.println(c);


      But fetched contect is null :(
      Am I missing sth?
      Please help :-)