[jboss-user] [EJB 3.0] - Re: Basic EJB - cant be invoked from client

jeff.rosen do-not-reply at jboss.com
Sun Apr 6 00:54:26 EDT 2008

"jwenting" wrote : A remote EJB client using an EJB local interface?
  | Might be the problem.

It would be a problem, but I think it would show up later.  The exception occurs during the JNDI lookup.  At worst he should get a NamingException.  

The problem is that he hasn't told the client where the naming provider is located.  One possible solution would be to modify the something like:

  | InitialContext ic = new InitialContext();
  | Context jndiRoot = (Context) ic.lookup("jnp://localhost:1099");
  | CalculatorLocal calculator = (CalculatorLocal)jndiRoot.lookup("CalculatorBean/local");

Assuming that JBoss is running on the same machine as the client, otherwise adjust the URL accordingly.

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

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

More information about the jboss-user mailing list