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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...