[jboss-user] [Microcontainer] - Classpath order within a deployer (to support evil hacks)
bob.mcwhirter
do-not-reply at jboss.com
Wed Feb 11 16:18:11 EST 2009
I'd like to "patch" a dependency of my deployer by providing a replacement class earlier in the classloader than the original .jar.
ie:
| jboss-rails.deployer/
| jboss-rails.jar # includes my patched org.apache.cxf.staxutils.StaxUtils
| cxf-commons.jar # includes the original version
|
Right now, I think my jboss-rails.jar comes after cxf-commons.jar, as my replacement class is not used. I'd like to ensure that my jar is first/earlier in the search process. I could probably "solve" this by naming my patch jar "aaaaa.jar" but that seems a little bit awkward.
Don't focus on CXF vs jbossws. Being able to "hot patch" classes through classloader search-order control would be awesome, generally speaking.
Thanks,
-Bob
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209244#4209244
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209244
More information about the jboss-user
mailing list