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.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
contextProperty.put(Context.SECURITY_PRINCIPAL, "admin") ;
contextProperty.put(Context.SECURITY_CREDENTIALS, "welcome");
contextProperty.put(Context.PROVIDER_URL, "jnp://211.80.70.1:1099");
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?