[jboss-user] [Spring Integration] - Re: ClassLoader inside deloyed bean cannot find existing cla
do-not-reply at jboss.com
Tue Nov 24 11:15:02 EST 2009
Thanks for your help again.
I didn't try TCCL, but I guess, in my scenario, the invocation is from web application, the system class loader and thread-context class loader are all related to web application (not the spring deployer).
As such I did the following trick to make it work, I implemented BeanClassLoaderAware interface in the class where I need class loader. Whenever I need class loader, I just use this one, it works perfect for me.
In this way, the class loader will be invoked and set when the bean is deployed, i.e., the class loader is same as the class loader of the spring deployer. This trick does the job!
I have another question about how to access a deployed spring bean from other spring context which is managed by MULE. I think, better to ask you in different thread.
Thank you so much,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267336#4267336
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267336
More information about the jboss-user