Hello all,
I finally resolved the problem...
Problem lied in the as everyone mentioned Connection URL
Earlier I was using url = "jdbc:db2:sample"
Then I changed it to follwing
and everything worked fine...
String url = "jdbc:db2://xxx.xxx.xxx.xxx/SAMPLE";
where xxx.xxx.xxx.xxx is the IP address of my machine.
Three Important things:
1. Database name should be all in capital letters.( strange but yes)
2. If you notice I never specified any PORT NUMBER... (I don't know why it
doenot need any port number...though ealier I was using 50000 as listening
port for DB2 instance DB2MPP but it didn't work)
but without port number it worked...
3. Important thing is it need correct username and password while running
the java file
that is
>java Ndb2servlet1 db2admin db2pwd
I was not doing that and now everything is in place...
Thanks all of you for your help...
------------------------------------------------------------------------------------
Nishant Awasthi
Corporate Systems Development
Progressive Insurance
"Ralph Einfeldt"
<ralph.einfeldt@upti To: "Tomcat Users List"
me-isc.de> <[EMAIL PROTECTED]>
cc: (bcc: Nishant Awasthi)
07/31/2002 11:51 AM Subject: AW: Connection between
TOMCAT and
Please respond to DB2 ???
"Tomcat Users List"
According to
http://www-3.ibm.com/software/data/db2/java/v5/faq.html#q7
it's a native driver.
The page also has a list how the libraries are called under
wich os. Find this file and add the directory that contains
this file to the (library) path.
> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 31. Juli 2002 17:42
> An: Tomcat Users List
> Betreff: RE: Connection between TOMCAT and DB2 ???
>
>
--
To unsubscribe, e-mail: <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>