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();

[806 byte] By [skoizumi2133a] at [2007-11-27 3:24:20]
# 1
I made it working.The problem was running two web logic server on a machine and there was some kind of conflict.
skoizumi2133a at 2007-7-12 8:27:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...