[jboss-user] [EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3

jaikiran do-not-reply at jboss.com
Wed Jan 16 07:22:58 EST 2008


"yanlong11" wrote : 
  | after removing binding, jndi view gives following:
  | +- testBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote (proxy: $Proxy129 implements interface beans.test,interface org.jboss.ejb3.JBossProxy)
  | 
  | 

If you have removed the @RemoteBinding annotation from your code and this is what the JNDIView shows, then use the following lookup string in your jsp:

Object obj = ctx.lookup("testBean/remote");
  | testBean bean = (testBean)obj;
  | out.print(bean.hello()); 

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

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



More information about the jboss-user mailing list