[jboss-user] [EJB 3.0] - Re: Invalid invocation of local interface (null container)

jaikiran do-not-reply at jboss.com
Wed Jul 25 19:23:39 EDT 2007


You are trying to lookup a local bean interface from the standalone client (remote client). Local interfaces are not meant for that. Local interfaces can be used when the client is part of the same JVM as the application server. Lookup the remote interface instead of the local interface from your main() method:

 HelloRemote helloR = (HelloRemote) ctx.lookup("HelloBean/remote");
  | if (helloR == null) {
  | System.out.println("Hello is null");
  | }
  | System.out.println("Output = " + helloR.hello()); 

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

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



More information about the jboss-user mailing list