[jboss-dev-forums] [JBoss Microcontainer Development POJO Server] - AS weld-int
kabir.khan@jboss.com
do-not-reply at jboss.com
Thu Oct 22 10:55:11 EDT 2009
I'm looking at the as weld-int project how to integrate the work I have done on MC's weld-int.
Here's an outline of what I believe I have to do
== 1 - Initialize Weld =====
This is done by BootstrapBean.initialize(). The BeanMetaData for BootstrapBean is created by WeldBootstrapDeployer, and deployed by BeanMetaDataDeployer.
== 2 - Deploy the MC beans using WeldKernelControllerContext so that we can have Weld->MC injection, and also be pushed to weld for MC->Weld injection =====
a) I need the BeanManager. BootstrapBean is initialised, so I can call BB.getWeldManager(). I do however need access to the bean manager to use, which I can get from the (Flat)Deployment attachment. I do see some issues down the line if a deployment has several bean managers, but want to get something up and running before digging into that.
b) How do I make sure that WeldKernelControllerContexts are deployed instead of KernelControllerContexts? Replace BeanMetaDataDeployer with something else?
== 3 - Deploy Weld beans =====
This is done by BootstrapBean.boot() which is called as part of BootstrapBean's start phase. I need to make sure this happens after 2), which looks like it is the case in BootDeployerTestCase, due to some mysterious dependency on EjbContainer#1 (line 79)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261739#4261739
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261739
More information about the jboss-dev-forums
mailing list