Perhaps i should have added some more info.
Code fragment is
Properties p = new Properties();
InitialContext initCtx = new javax.naming.InitialContext(p);
Object ref = initCtx.lookup("ejb/MyBean");
and the problem is the last line (MyBean is stateless session bean).
Is perhaps this classpath problem?
I have tried myself the deployment of the ejb and using the java client from different jvm it works fine,Can
you explain how do you deploy the ejbs?I am new to the
ThankYou for hint.
I was trying to run client with ant script and it did not work.
When I tried with plain console it worked!!
Ant is not that simple as we expected ..
for curious here is ant fragment to blame:
Change in line
has made ant script working (in ant 1.5 beta). But why would starting client in new JVM help?!