I have two application installed on two different servers . With the callerEjb on one server I want to invoke the CalleeEjb on other Server.
In the deployment descriptor of callerBean I have written these lines -------------- <ejb-name>CallerBean</ejb-name> <reference-descriptor> <ejb-reference-description> <ejb-ref-name>ejb/CalleeBeanReference</ejb-ref-name> <jndi-name>t3://172.24.99.42:7003/com.ejb.Callee.CalleeBean</jndi-name> </ejb-reference-description> </reference-descriptor> ----------- My question to you is that When I do lookup and narrowdown the object I need Remote and Home interfaces of the callee bean , How I will resolve this references . Currently in development environment I have set my classpath to point to these classes as both the servers are running on same machine. But the real problem comes when caller and callee bean will deployed on different physical servers. Do I need to package the home and remote interfaces of calleebean into callerbean or there is some other approach ?