In Weblogic 10.3, how can I insert a remote EJB from one EAR into the idle bean of the other, both EARs deployed in the same container? Ideally, I would like to make as many annotations as possible.
So, suppose I have the following interface:
public interface HelloService { public String hello(); }
implemented by the following EJB:
@Stateless @Remote public class HelloServiceBean implements HelloService { public String hello() { return "hello"; } }
Suppose they are packaged and deployed to server.ear . Now in client.ear I have the following:
@Stateless public class HelloClientBean { @EJB HelloService helloService;
What do I need to add so that Weblogic correctly defines the wiring between HelloClientBean in client.ear and HelloServiceBean in server.ear ? Pointers to official documentation and / or books are warmly welcome.
lindelof
source share