A Leg wrote:

Hi Thomas.

In fact setClassLoader is not usable.
As ClassLoader is used inside the first call to OJB :
PersistenceBrokerFactory.defaultPersistenceBroker();
Which use it to load Configuration and Logger elements.
So when you have conflict between OJB ClassLoader and your application ClassLoader ....

Hmm, why would that prevent you from using setClassLoader ?

   // this should be the very first call
   ClassHelper.setClassLoader(myClassLoader);

// because of this call logging and OJB will get initialized (lazy initialization)
broker = PersistenceBrokerFactory.defaultPersistenceBroker();


Since ClassHelper does not use logging or OJB's properties, there should be no interference!

Tom


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



Reply via email to