I believe that if you specify the class resolver to use for resolving modules, that resolver will also be used to locate the classes. You can do this per instance (class-resolver property of the builder factory).

http://jakarta.apache.org/hivemind/current/hivemind/BuilderFactory.html

Cheers,

Johan

On 26 Apr 2005 15:39:26 +0300, Igor Laberov <[EMAIL PROTECTED]> wrote:

Thanks Jens,
This is interesting article, but I don't think that it helps me when I
work with HiveMind, because component instantiation is done by
framework, and not by me.
The question is it is possible to define some jar as component to be
loaded in separate class loader?

On Tue, 2005-04-26 at 15:08, Jens X Augustsson wrote:
Not without overriding the system class loader, to my my knowledge.

But Don Schwarz has written an excellent article on how to fairly easy
archieve this with your own class loader, His goal was, just as your is, to
be able to use different versions of the same third party library:
http://www.onjava.com/pub/a/onjava/2005/04/13/dependencies.html?page=2


cheers,
Jens

-----Original Message-----
From: Igor Laberov [mailto:[EMAIL PROTECTED]
Sent: den 26 april 2005 13:48
To: [email protected]
Subject: ClassLoader question

Hi all,
Is it possible to load different (group of)components in separate class
loaders?
This is especially important in cases when 2 components are using different
versions of the same third-party library


Thank you,
Igor Laberov
Qlusters, Inc.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





-- you too?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to