As discussed privately I have changed things a bit. Here's the current state of play.
In the deployers, I create WeldKernelControllerContexts for the MC beans if they are part
of a deployment that contains weld deployments. The WeldKernelControllerContext has a
reference to the BeanManager which is then used for injection from Weld to MC beans.
Only MC beans with the @WeldEnabled annotation are available for injection from MC to Weld
(you can/should of course use qualifier annotations etc. in addition to this). I created a
WeldEnabled annotation plugin to handle this annotation and add the beans to the
McFromWeldRegistry. This means that @WeldEnabled MC beans that are not part of a
deployment containing Weld beans are available for injection to Weld beans in later
deployments.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264682#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...