If an application uses the SybMessageHandler, the code differences would be:
jConnect 4.0 code:
import com.sybase.jdbc.SybConnection; import com.sybase.jdbc.SybMessageHandler; . . Connection con = DriverManager.getConnection(url, props); SybConnection sybCon = (SybConnection) con; sybCon.setMessageHandler(new ConnectionMsgHandler());
jConnect 6.0 code:
import com.sybase.jdbcx.SybConnection; import com.sybase.jdbcx.SybMessageHandler; . . Connection con = DriverManager.getConnection(url, props); SybConnection sybCon = (SybConnection) con; sybCon.setSybMessageHandler(new ConnectionMsgHandler());
See the samples provided with jConnect for more examples of how to use Sybase extensions.