• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

returning a connection

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

reply
    Bookmark Topic Watch Topic
  • New Topic