tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryszard Lach <>
Subject Re: Connection between TOMCAT and DB2 ???
Date Thu, 01 Aug 2002 08:47:31 GMT
On Wed, Jul 31, 2002 at 03:11:03PM -0400, wrote:
> Thanks Richard for your help,
> Yes, just now I managed to connect DB2 to Tomcat and using simple java file
> able to retrieve the values from sample database.
> But I have a question for you.
> while defining my Connection URL I never specified a port number.
>   String url = "jdbc:db2://";
> If you see above I just gave IP address of my machine and not port number.
> In past cases I have used port number given to me by the DBA.
> I would like to know what is the importance of port number and which
> service is running on this port.

DB2 usually listens on 50000 port (the server). You use it in 'catalog
tcpip node' command on client, then you execute 'catalog node ...' on the client machine and then use the new
database name and ip of the client machine. You don't need the port
number, DB2 client knows it.


"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message