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

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870151#3870151

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870151


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to