All you need to do is to initialize the initial context properly. You�ll need to set at least couple of properties (they could be more if your beans on the other server are jndi protected) like this:
All your components deployed to the appserver1 that needs to access components deployed to appserver2 need to include code similar to the one above. Ideally through a service locator. Regards.
Of course, you will need the EJB client JAR containing the home and remote interfaces for the EJB, which has to be invoked, available to the other one.
Cheers!<br /><b>Annie</b>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.