This content has been marked as final.
Show 3 replies
-
1. Re: How to inject a remote EJB to a seam component
cseuuu Jul 26, 2010 9:15 AM (in response to cseuuu)any one know this?
According to my search and research, it seems that seam does NOT provide the function to inject a remote EJB to seam component.
-
2. Re: How to inject a remote EJB to a seam component
serkan.s.eskici.online.nl Jul 26, 2010 12:26 PM (in response to cseuuu)Check this url.
-
3. Re: How to inject a remote EJB to a seam component
thokuest Jul 26, 2010 1:20 PM (in response to cseuuu)Are you searching something like this?
Seam Factory Component:
@Name("remoteEJBFactory") public class RemoteEJBFactory { @Factory public HelloWorldRemote getHelloWorld() { Context ctx = new InitialContext(); // [...] return (HelloWorldRemote) ctx.lookup("ejbtest/HelloWorldImpl/remote"); } // [...] }
Seam Component:
@Name("helloWorldClient") public class HelloWorldClient { private @In HelloWorldRemote helloWorld; // [...] }
Highly untested, Hope that helps!