here is the suggestion from me
add this piece of code in ur java file
Properties p = new Properties();
p.setProperty("java.naming.provider.url","jnp://" + serverHost + ":" + serverPort);
ctx= new InitialContext(p);
BeanHome home= (BeanHome)ctx.lookup(beanName);
CustomerHome home = (CustomerHome)ctx.lookup(CustomerHome);
here port no is 1099
and serverhost is ur host id
I'm having sort of the same problem but trying to run from a client on the server. I have yet to try this to see if it works. Thank you for the workaround!
However, coding it this way defeats the purpose. So can anyone illuminate me on the best way to get this working!