JBoss Community

Re: How to stop my WAR loading JBoss's provided 3rd party classes?

created by Ales Justin in JBoss Microcontainer - View the full discussion

The optimal target would be either to allow for multiple filters directly

You just need to javabean> the right filter instance. ;-)

 

e.g. <-- pseudo code -- I need to check this into more details (it's been a while since I wrote this javabean' stuff :) )

 

<before-filter>
<javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.plugins.filter.CombiningClassFilter">
     <constructor>

     <parameter>

     <!-- some other filter missing here + some xml syntax -->

     <javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.plugins.filter.NegatingClassFilter">
      <constructor>
       <parameter>
        <javabean xmlns="urn:jboss:javabean:2.0" class="org.jboss.classloader.spi.filter.RecursivePackageClassFilter">
         <constructor>
          <parameter>org.hibernate</parameter>
         </constructor>
        </javabean>
       </parameter>
      </constructor>
     </javabean>

   </parameter>
   </constructor>
    </javabean>

</before-filter>

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community