JBoss Community

Re: Custom ClassLoader

created by Irfan Basha in JBoss Microcontainer - View the full discussion

Hi Ales,

 

Thanks for the reply.

 

Do you mean my jboss-beans.xml should be:

 

<deployment xmlns="urn:jboss:bean-deployer:2.0">

            <classloader name="custom-classloader" xmlns="urn:jboss:classloader:1.0"

                              export-all="NON_EMPTY" import-all="true" />

          <bean name="CustomCL" class="com.beans.CustomClassLoader">

                         <constructor>

                                        <parameter>

                                                       <inject bean="custom-classloader:0.0.0" />

                                        </parameter>

                         </constructor> 

          </bean>

          <bean name="CB1" class="com.Sample">

                         <classloader>

                                        <inject bean="CustomCL" />

                         </classloader>

    </bean>

</deployment>

 

I still get ClassNotFound Exception...

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community