4 messages in com.mysql.lists.javaLoading a MySQL driver from a network...
FromSent OnAttachments
Matt Penner04 Aug 2000 05:29 
Asif Raj04 Aug 2000 08:32 
Matt Penner04 Aug 2000 10:16 
Christian Mack14 Aug 2000 23:00 
Subject:Loading a MySQL driver from a network machine.
From:Matt Penner (mlpe@csupomona.edu)
Date:08/04/2000 05:29:02 AM
List:com.mysql.lists.java

I've been looking all over for a solution to this and haven't gotten far yet. I am building an e-commerce site using Servlets. The hosting company that we are using has MySQL however they have never connected to it through Servlets. I can connect to the database through a standard Java app on my machine using the mm.mysql driver that is in my CLASSPATH. I have asked repeatedly for my hosting company to load up a Java - MySQL driver that my servlet can access but they haven't done it yet. In fact they have "assigned it a task to better serve me" which I believe is their way of say that they have never done this before and are trying to figure out how.

Can anyone let me know of a way to load the class from inside my servlet for the time being? I have looked for an understandable classLoader subclass, such as NetworkClassLoader, but I haven't found any that work for my system or they are so complicated that I'm not even sure that it's connecting to my machine right.

Thanks, Matt