Hi,
how can I use dependency injection for remote ejbs residing on other machines?
Example:
@Stateless(name="CustomerFacadeClient")
@SecurityDomain("united-erp")
@Name("CustomerFacadeClient")
public class CustomerFacadeClientImpl implements CustomerFacadeClient
{
/**
* CustomerManagerFacade facade
*/
@EJB
private CustomerManagerFacade facade;
CustomerManagerFacade is a stateless session bean and is deployed on an other host. Is that possible to inject facade with a remote ejb reference?
thanks.
Hmmm...you could probably use the ExternalContext MBean to bind the other hosts JNDI tree into your local namespace and do it that way.
Take a look at:
http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch3.chapter.html#d0e8472