websphere ejb remote call
I can't call ejb remotely with java applicatoin (javax.naming.NameNotFoundException).
I tried with the servlet and works fine.
How can i setup the environment so that it works with java client remotely.
//call ejb from ejb
Context initial = new InitialContext();
sample.HelloWorldHome home = ( sample.HelloWorldHome )PortableRemoteObject.narrow( initial.lookup("ejb/sample/HelloWorldHome"), sample.HelloWorldHome.class);
sample.HelloWorld h = home.create();
//from remote client
Context initial = new InitialContext();
sample.HelloWorldHome home = ( sample.HelloWorldHome )PortableRemoteObject.narrow( initial.lookup("IIOP://localhost:2809#ejb/sample/HelloWorldHome"), sample.HelloWorldHome.class);
sample.HelloWorld h = home.create();

