Re: Help needed gnu classpathx mail

Chris Burdess <[email protected]> Wed, 31 Dec 2003 12:08:55 +0000
Newsgroups gmane.comp.java.classpath.extensions.discuss
Message-ID <[email protected]>
Chris wrote:
> Ok, I see what's going on. Now here's a tough question... My application 
> has a plugin architecture and uses custom plugins, and therefore custom 
> classloaders. My plugin is calling Session.getSession().  That means its 
> gets a Session object from the Sun java class library. However I have 
> the gnu Providers in my plugin, and I mention them in my 
> META-INF/javamail.providers file. However because that is in my plugin 
> under a different class loader it isn't found. I need a way to get the 
> Session object to load its javamail.providers from a custom location so 
> it doesn't rely on the default classloader.

place both sun and custom providers in the
${JAVA_HOME}/lib/javamail.providers file, or use gnu javamail instead of
the sun implementation.
-- 
Chris Burdess