
Migrating jConnect Applications
Migrating applications to jConnect 6.x
Use
the following procedure to upgrade to jConnect 6.x.
Migrating to jConnect 6.0
- If your code uses Sybase extensions, or
if you explicitly import any jConnect class in your code, change
package import statements as needed.
For example, change import statements such as
import com.sybase.jdbc.*
and
import com.sybase.jdbc2.jdbc.*
to
import com.sybase.jdbcx.*
For information on using the Sybase extension APIs, see "Changing Sybase extensions ".
- Set JDBC_HOME to the top directory of
the jConnect driver you installed:
JDBC_HOME=jConnect-6_0
For more information on setting JDBC_HOME, see "Setting Environment
Variables" in Chapter 1 of the jConnect for JDBC Installation
Guide.
- Change your CLASSPATH environment variable to
reflect the new installation. For jConnect 6.0, your classpath must
include the following:
JDBC_HOME/classes/jconn3.jar
- Change the source code where the driver is loaded, and
recompile the application to use the new jConnect 6.05 driver:
Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
- Verify that the new jConnect 6.05 driver (in JDBC_HOME/classes/jconn3.jar) is
the first jConnect driver specified in your CLASSPATH environment
variable.
|
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|