Search code examples
javaspringwebspherefilteringclassloader

Is there something like the Weblogic filtering classloader for Websphere


I'd like to use something like the Filtering Classloader to prevent specific packages from creeping into the application context and becoming visible to Spring.

Changing the classloader order causes all sorts of nasty problems so I´d like to try this route.

Is it possible to achieve this with Websphere 6? If not, can I replace my own application classolader and implement the filter myself?


Solution

  • There is no such filtering mechanism in WebSphere, and there is no way to replace the application class loader. You'll have to use PARENT_LAST to override classes, sorry.