This content has been marked as final.
Show 1 reply
-
1. Re: not getting weld:exclude to work...
mtaal Nov 24, 2010 9:48 AM (in response to mtaal)Oeps... my mistake :-), actually the beans.xml was read, but if there are exclude tags then at least one include tag is needed, for example like this:
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:weld="http://jboss.org/schema/weld/beans"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd
http://jboss.org/schema/weld/beans http://jboss.org/schema/weld/beans_1_1.xsd">
<weld:scan>
<weld:include name="**"/>
<weld:exclude name="org.mytest.**"/>
</weld:scan>
</beans>
This works for me.
gr. Martin