If you're running your sample code inside JBoss you only need to create a default InitialContext object.
| Context context = new InitialContext(); | If you're running for a separate process, you need to set the property that are inside $JBOSS_HOME/server/default/conf/jndi.properties and only those Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839320#3839320 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839320 ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user