[jboss-user] [EJB 3.0] - How to inject EJBs with custom injector?

Christian Strempfer do-not-reply at jboss.com
Mon Aug 23 04:24:30 EDT 2010

Christian Strempfer [http://community.jboss.org/people/christian.strempfer] created the discussion

"How to inject EJBs with custom injector?"

To view the discussion, visit: http://community.jboss.org/message/558529#558529

I have a distributed environment and a service locator, which can  locate all EJBs on different servers. Is it possible to use the standard @EJB-Annotation, but  make the lookup on my own?

For example:
@javax.ejb.EJB(name = "ejb/TestService")
private TestService testService;

Should trigger:
return ServiceLocator.findEJBService(TestService.class, "ejb/TestService")

My intention is to keep the deployment transparent for the developers. They can use @EJB as normal, but will end up using the service locator.


Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100823/59367fd6/attachment.html 

More information about the jboss-user mailing list