vqServer Using JDBC


Servlets running under vqServer can make use of JDBC without restrictions.

Many JDBC code samples include a line like

      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
      

This line refers to a class which is present in Java Virtual Machines (JVMs) produced by Sun Microsystems but not in JVMs from other suppliers. If this class is not present vqServer will not be able to run the servlet properly and will return an error message. When vqServer is started by invoking vqServer.exe you are using a Microsoft JVM which does not contain this class.

Possible solutions to this problem include:

  1. Replace the above line with
     Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");
    

    if you're using a Microsoft JVM.

  2. Remove this line from your servlet. The JVM should be able to determine which JDBC driver is appropriate from those available to it.
  3. Use a Sun Microsystems JVM.


vqServer version 1.9. Copyright © 1997-2000 Steve Shering and vqSoft. Last updated 8 October 1999.
vqServer
FAQs
Register (free!)
Support

Contents

CGI
Roaming