Can I have a single library shared by multiple classloaders in JBoss EAP

Solution Verified - Updated -

Issue

  • Want to add items onto the classpath of a deployment such that multiple deployments can reference a common library which exists outside the deployment but load the library such that each deployment's classloader loads classes separately.  That is, they get their own, isolated instances of classes from the common library.

  • Is there a way to force the shared libraries to be loaded within the classloader of the deployment that accesses them? Are there other options that will accomplish the same goal?

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0.0_GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.