[jboss-user] FileSystem ExternalContext - JNDI on jboss5.1.0

Maciej Madej maciekcom at gmail.com
Mon Nov 30 02:02:43 EST 2009


Hi,

I've configured ExternalConfig as follow:

 *Code:*

<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:

 *Code:*

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 :-)

-- 
Pozdrawiam
Maciej Madej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20091130/2ecc5de1/attachment.html 


More information about the jboss-user mailing list