[jboss-user] [JBoss Microcontainer Development POJO Server] - Implementing a non-flat deployment for Weld Integration

Ales Justin do-not-reply at jboss.com
Fri Jun 4 10:48:43 EDT 2010


Ales Justin [http://community.jboss.org/people/alesj] replied to the discussion

"Implementing a non-flat deployment for Weld Integration"

To view the discussion, visit: http://community.jboss.org/message/546236#546236

--------------------------------------------------------------
> Yes. If there is an accessible (i.e. classes can be loaded from it) library jar with META-INF/beans.xml, then Weld expects you to return it as part of the BDA graph of the Deployment.
OK, this then rules out my lazy approach. :-)

But I would still do this on_demand, when (but just before) the first CDI/Weld deployment is deployed.
That would be the default behavior, but it could be made optional to do this at boot time instead.
> The loadBeanDeploymentArchive method solely exists for the case that someone adds a bean based on a class which isn't present in the BDA graph via a CDI lifecycle listener. For every bean defined in such a way, Weld calls loadBeanDeploymentArchive, expecting the correct BDA to be returned.
> IOW this is a kinda a two stage process - firstly the BDAs which are defined declaratively (META-INF/beans.xml) are handed to Weld, and then BDAs which are defined programatically are loaded by Weld (via loadBeanDeploymentArchive).
So, if I understand this correctly, BDAs created via "loadBeanDeploymentArchive" don't require beans.xml?
Simply add the class' owner jar as a BDA archive?

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/546236#546236]

Start a new discussion in JBoss Microcontainer Development POJO Server at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2116]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100604/3d7ea3bd/attachment.html 


More information about the jboss-user mailing list