This is an example source code for server-side connection.
You can find the source code in the InternalConnect method of JDBCExamples.java in the C:\Documents and Settings\All Users\SybaseIQ\samples\SQLAnywhere\JDBC directory under your Sybase IQ installation directory:
public static void InternalConnect() {
try {
conn = DriverManager.getConnection("jdbc:default:connection");
System.out.println("Hello World");
}
catch ( Exception e ) {
System.out.println("Error: " + e.getMessage());
e.printStackTrace();
}
}
}