Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
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:

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic