2 Replies Latest reply on Mar 26, 2012 10:24 AM by sjcorbett

    Automatically creating beans when deploying to AS 7

    sjcorbett

      Hey,

       

      Is there an equivalent of Weld SE's container.instance().select(Example.class).get() that I can use to get Weld to instantiate particular beans automatically when deploying to AS 7?


      I find that when I deploy my ear Weld finds my beans and wraps their injection targets with extensions, then presumably defers calling produce() and inject() on the injection target because no other classes refer to them. Ideally (in this case), the beans would be instantiated automatically on deployment.

       

      Thanks