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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content