I have an EJB deployed in a JBoss server on a machine. I want to invoke another EJB deployed on a remote server. I want to use the @EJB annotation to inject the remote EJB reference. How do I specify the remote server url in this annotation? Or do I specify this in some xml file?
I got this paragraph from http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/injection/
EJB 3.0 dependency injection only works in the local JNDI. Hence you cannot inject objects from remote servers.
Does this mean that I cannot use @EJB annotation from remote clients?