[jboss-user] [JNDI and Naming] - File System External Config
maciekcom
do-not-reply at jboss.com
Sun Nov 29 16:04:44 EST 2009
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 :-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267984#4267984
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267984
More information about the jboss-user
mailing list