I am new to Jboss and J2EE so please ignore my ignorance.
I have a EAR file containing EJB having a remote interface.Now i have to call this remote interface from another WAR file(this WAR is not contained
in the EAR contaning EJB).Both EAR and WAR are deployed on the same
I have tried to call using the JNDI lookup like
FiboHome home = (FiboHome) PortableRemoteObject.narrow(ctx.lookup("java:/comp/env/ejb/Fibo"),FiboHome.class);
but while calling Remote Method system is throwing exception
javax.naming.NameNotFoundException: ejb not bound
Is this the right way to call Remote Interface from outside EAR? If Yes,what's wrong if no ,What is the right Way ?
Thanks in Advance
The java:comp/env namespace is a component local one. Unless you have deployed a j2ee client that sets up a java:comp/env namespace you need to know the full jndi name of the remote ejb home to lookup. For more on j2ee clients see: