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

Pete Muir do-not-reply at jboss.com
Thu Jun 3 11:38:34 EDT 2010


Pete Muir [http://community.jboss.org/people/petemuir] replied to the discussion

"Implementing a non-flat deployment for Weld Integration"

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

--------------------------------------------------------------
> Flavia Rainone wrote:
> 
> > Ales Justin wrote:
> > 
> > Why the rush? :-)
> > If you ask me, I would do it lazily aka on_demand.
> > 
> > Scanning the whole common/lib is gonna be slow,
> > and imo, people should not be using libs to deploy Weld components -- simply put them in deploy/.
> > 
> > Or why would you do it upfront?
Because the Java EE/CDI specs require it.
> I've been thinking about correctness all this time. If somebody places a jar in lib and expects that the beans are created upfront when AS starts, then this would not work using your approach.

Ok, I think we've got crossed wires. You can't deploy a library jar in some "context" outside a deployment. The beans don't get created or anything outside the context of a deployment.

Another way to think of it is that a library in default/lib with a beans.xml in it works just like a library in WEB-INF/lib.

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

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

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/20100603/53258add/attachment.html 


More information about the jboss-user mailing list