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

Stephen Davidson gorky at freenet.carleton.ca
Mon Nov 30 08:21:40 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Maciej.

This mailing list does not seem to be monitored by anyone from the JBoss
group, nor is it posted to the Forums anymore.  You would be best to try
the Forums on this question (not sure which one off-hand, though, sorry).

Regards,
Steve

Maciej Madej wrote:
> 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 <http://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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> jboss-user mailing list
> jboss-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-user

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAksTxuMACgkQSphIUSiVzgbKXwCeL6+ZXzKCWGWicmEUdi6sBX3E
FXwAoM1nsGJLbfxzM89ALl4V9oeGSHnK
=aHBi
-----END PGP SIGNATURE-----



More information about the jboss-user mailing list