I deployed one A.ear in my windows machine and also deoployed B.ear in another linux machine;
from utility class that is in A.ear i am trying to lookup EJB located in B.ear i am getting this error
Error : javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.blah.blah.CalRHome
contextProperty.put(Context.SECURITY_PRINCIPAL, "admin") ;
InitialContext taxEngineContext = new InitialContext(contextProperty);
Object objhome = taxEngineContext.lookup("CalR");
CalRHome home = (CalRHome) PortableRemoteObject.narrow(objhome,CalRHome.class);
1. why should i specify remote and home interfaces in A.ear its already there in B.ear?
2.one thing i dont understand, without adding those two interfaces in A.ear works well in oc4j server,here in jboss-4.0.2 its giving above exception.
3.Is it must to add those two interfaces in A.ear?
to call B.ear on the other node2 node1 needs to hav the remote and home interfaces of B.ear in its class path. jsut jar them and have it in the lib directly on node1. it will work fine..