2 Replies Latest reply on Jul 27, 2010 7:56 AM by Pete Muir

    ServiceLocator (or manual creation at least) and managed beans

    Adam Kędziora Newbie

      I would like to use something like ServiceLocator api in my application to create a simple module system - for me it would be enough to for example get all EJB's implementing a @Local interface. I thought that I could solve my problem if there would be a possibility to create managed objects by demand - that is, I get the class object or at least it's name from serviceLocator (for example) and then ask container somehow to give me a managed object of this class (so I still have the benefit of dependency injection in the requested object, as well as a container managed pool of objects)