David Le Strat wrote:

Hi there,

I have been struggling for a couple days now with an
issue while building a Merlin OJB (Apache DB) service.

OJB use
org.apache.commons.pool.impl.GenericKeyedObjectPool
which seems to spawn a new thread from the block
thread to manage the PersistenceBroker pool of
objects.  In that case, does anybody have any idea why
I would loose reference to the classpath avalaible to
the block thread classloader?


It sounds like the object creating the new thread is creating and assigning a different classloader as the context classloader. If you code is referencing the context classloader then you could end up with problems. One way around this is to grab a reference to the classloader established by merlin by requesting the context entry urn:avalon:classloader.


Stephen.


I can't quite figure out why that would be. If I run OJB in a web container for instance, I do not have a similar problems. Any insight?

Regards,

David Le Strat.

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





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



Reply via email to