I've loaded a directory's contents into JNDI through a Filesystem ExternalContext.
It works fine when I try to get or put a File into jndi from an EJB.
However, when i try the same operations from a standalone client, I only get a Reference object if i'm trying to get the context relative to the directory, or I get a javax.naming.NotContextException if i attempt to get a file.
My configuration is:
<server> <mbean code="org.jboss.naming.ExternalContext" name="jboss: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:///c:/usr/local</attribute> <attribute name="InitialContext">javax.naming.InitialContext</attribute> <attribute name="RemoteAccess">true</attribute> </mbean> </server>