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

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

Hi, 



I use the standard cluster.xml files in the server "all", so i didnt have to 
configured anything.



There is the snip set to use: 



Hashtable env = new Hashtable(); 

env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); 

env.pu(Context.URL_PKG_PREFIXES, "jboss.naming.org.jnp.interfaces"); 

env.put(Context.PROVIDER_URL, ""); 

env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); 

     



Context ctx = new InitialContext(env); 



Object obj = ctx.lookup("/Context"); 





If you want the complete code, i can send you by email. 



Or if you have trouble with yours, i can try to debug it.



Jean-Francois




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to