Hi,
Pls refer to my
thread http://forum.java.sun.com/thread.jsp?forum=13&thread=472298. The problem lied while defining my jndi-name for that bean.
In order to use remote invocation with EJBs, you must have the Home/Remote interfaces.
If your "client" of EjbB was not an
EJB, you can use reflection carefully, such as from a stand-alone application. But within the container, you cannot use reflection, ergo you must use the interfaces.
And just because the two JAR files are on the same machine, even "running" in the same JVM, doesn't mean a durn thing. Typically, they're in different ClassLoaders, which means that they cannot "see" each other - and you have to rely on the container's remote invocation to access them.
Seetesh