I am having problems in setting up the connection to a Sybase database.
I use jboss-3.0.3_tomcat-4.0.5 and have placed jconn2.jar in [JBoss]/server/default/lib. sybase-service.xml file is monified and placed in [JBoss]/server/default/lib.
From my application I am trying to make the connection like saying:
Connection conn = getConnection();
Statement stat = conn.createStatement();
ResultSet rs = stat.executeQuery( query );
...
But this fails and the JBoss server shows the following error message:
javax.naming.NameNotFoundException: SybaseDB not bound
What am I doing wrong? Have I forgot to do something?
I can also mention that I have earlier made an application with connection to Microsoft SQL Server 7.0 that worked.