June 24th, 2003, 01:27 PM
Connecting to my databse over TCP/IP
I am trying to connect to my database over TCP/IP through a servlet with a simple username and password authentication. I have accessed this database with another servlet previously so i know it is set up correctly. Java is throwing an SQLException when i use this statement:
db = DriverManager.getConnection( "jdbc:postgresql:"+database,username.password );
where database is a String of the name of the database, username is the person accessing the database, and password is that user's password.
I have used this same statment in my previous servlets and it has worked so I am thinking that it is just some stupid little thing that I am not thinking about. Any input would be much appreciated