When connecting to a DSURL, you must specify the path to the sql.ini or interfaces file and the server name. Otherwise, jConnect will return an error.
This specifies the path to the sql.ini file:
String url = "jdbc:sybase:jndi:file://D:/syb1252/ini/mysql.ini?myaseISO1”
where:
server name = myaseISO1
sql.ini file path = file://D:/syb1252/ini/sql.ini�
This specifies the path to the interfaces file:
String url = "jdbc:sybase:jndi:file:///work/sybase/interfaces?myase"
where:
server name = myase
interfaces file path = file:///work/sybase/interfaces