Pete Muir [http://community.jboss.org/people/pmuir] replied to the discussion
"Implementing a non-flat deployment for Weld Integration" To view the discussion, visit: http://community.jboss.org/message/544054#544054 -------------------------------------------------------------- > Flavia Rainone wrote: > > > Pete Muir wrote: > > > > > Flavia Rainone wrote: > > > > > > Pete also pointed out an important behaviour that should be fixed. In a > > > nutshell, all archives visible to a BDA are scanned. In the given > > > scenario: > > > ejb.jar A reaches lib2. In lib2 we have a ClassPath reference in the > > > manifest to lib3, which is not in the classpath of the server... it is > > > somewhere in the filesystem. In this case, for what I understood from > > > Pete's explanations, lib3 is going to be scanned for CDI stuff. But this > > > shouldn't happen, so we would also need a way of differentiating lib3 > > > from lib2. I'll stop my explanation here, as I think Pete can fill in the > > > blanks and explain this much better :-) > > > > Something has gone wrong here, in this case lib3 *should* be scanned for > > CDI stuff. > Now I see. So, this is someting that is not currently implemented and that > should be implemented, right? > > I have a few questions: > > - regarding jars in the lib of the server, they should never be treated as > BDAs, right? (I know we discussed about this, but I'm so deep in so many > details that now I got confused :-) ) They are BDAs if they have a META-INF/beans.xml > - the Deployment.loadBeanDeploymentArchive(Class<?> beanClass) method should > search only for the archives included in the deployment, or for all archives > visible from the deployment? A small example to ilustrate my question: > if there are two separate ejb-jars deployed, A and B, and I invoke > loadBeanDeploymentArchive at the deployment that represents ejb-jar A, using > a class that is in ejb-jar B as parameter, should the deployment be able to > find it? All archives visible. In your example it should be able to do it. > - what do I do if loadBeanDeploymentArchive fails to find any archive > containing the class, should it return null? I'm assuming yes, but I would > like to have an ok here, as the javadoc is not explicit about this Throw an exception, as this shouldn't happen. (IAE I think). Can you file a WELDINT issue so we update tha javadoc. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/544054#544054] 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
