• Post Reply Bookmark Topic Watch Topic
  • New Topic

returning a connection

 
Sanjay Anand
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working with Tomcat with Netscape ES 3.6 on Solaris hitting a Sybase database.
I have been asked to put all my 'connecting methods' (i.e. those with sensitive information like password etc.) in separate classes.
I am trying the following code to 'return' the connection but it does not seem to be working.
I get this error:
java.sql.SQLException: No suitable driver
Now the same code, put in one class instead of two, works just fine.
What is going on?
I am attaching both codes below.

And this is the class that invokes the above class:

 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!