Flavia Rainone [http://community.jboss.org/people/flavia.rainone%40jboss.com] replied to the discussion
"Implementing a non-flat deployment for Weld Integration" To view the discussion, visit: http://community.jboss.org/message/546078#546078 -------------------------------------------------------------- > 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? 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. Thinking about performance, though, I think that we should trade that by better performance, i.e., we should use the suggested lazy approach. And I don't see any useful scenario where somebody would want to have a bean deployed to lib dir loaded at startup, specially if no other bean deployed in deploy dir has a dependency towards it. Pete, does the lazy approach fullfills the Weld prerequisites regarding lib jars? -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/546078#546078] 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]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
