[jboss-user] [EJB 3.0] - Re: NullPointerException in HelloWorld

wolfc do-not-reply at jboss.com
Wed Jul 12 05:27:24 EDT 2006


Try the following code:
InitialContext ctx = new InitialContext();
  | 
  | HelloRemote bin = (HelloRemote) ctx.lookup("HelloBean/remote");

It needs some exception handling.

Depending on the method of deployment the JNDI name may vary. Look in the JMX console -> JNDIView for the true name.

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

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



More information about the jboss-user mailing list