--- untested code follows ---
URL myFileLocation = new URL("file:///where/my/files/are/");
URL[] myURLs = new URL[] {myFileLocation};
ClassLoader loader = new URLClassLoader(myURLs,
Thread.currentThread.getContextClassLoader());
Thread.currentThread.setContextClassLoader(loader);
-------------------------------------I leave it to the experts to tell us where the hook for customizing your Classloader in OJB is :). It would make a lot of sense if there were a way to get OJB to grab a custom classloader at startup, but I don't have a clue if it can or how it might be implemented if it is.
Just a thought, -Gus
Muhammad Aamir wrote:
At last it's done!
I put all ojb jars and db driver jar and my jar file (persistence classes) in nb-home/lib/ext directory.
No there is only one thing remaining, I've to mention OJB.properties using absolute path like:
System.setProperty("OJB.properties", "c:/work/test/OJB.properties");
And in OJB.properties:
file:///c:/work/test/repository.xml
Is there any way to get rid of this ?
Thanx a lot! Aamir
-----Original Message-----
From: Coup, Robert Muir [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 12:49 AM
To: OJB Users List
Subject: RE: FW: NetBeans and OJB
Hi,
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
