Yes, usually jdbc runs on  a port, i belive most people use 5555.  Someone correct me if I am wrong.
 
Eytan
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Gaurav Kishore
Sent: Tuesday, June 01, 1999 6:18 PM
To: [EMAIL PROTECTED]
Subject: JDBC via Servlet!

Hi!,

I am trying to run a servlet on Apache JServ on Unix. The servlet tries to connect to Oracle 7.x  (which is on a different server) using JDBC drivers.

I have the following code in the servlet :

con = DriverManager.getConnection("jdbc:oracle:xxx.yyy.com:dbname","username","pwd");

Do I need to mention the port no. of the database server also, because though the code is compiling without an error but while running the servlet I am getting "Internal Server Error".

Any help is appreciated.

Thanks in advance
Gaurav

Reply via email to