JBoss Community

How to inject EJBs with custom injector?

reply from jaikiran pai in EJB 3.0 - View the full discussion

Christian, welcome to the forums.

Christian Strempfer wrote:

 


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.

Isn't it already transparent? I mean each developer just has to do @EJB. That's it! I'm not sure I understand the rationale behind using the ServiceLocator.

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community