[jboss-user] [JNDI/Naming/Network] - Re: newbie please help: using the right name?

jaikiran do-not-reply at jboss.com
Thu Oct 5 06:43:39 EDT 2006


Change this:

ctx = (Context) new InitialContext().lookup("java:comp/env"); 
  | 
  | Object objref = ctx.lookup("java:/AppMail"); 

to:

Context ctx = new InitialContext();
  | Object objref = ctx.lookup("java:/AppMail"); 



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

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



More information about the jboss-user mailing list