oracle connection will slow................

dear friends...

i connected oracle with jdk1.5

while connecting i give IP address... its very slow. instead of this i gave ' localhost' its very fast....

how can i connect thro network......(because oracle & tomcat server are in different machine)

is there any problem in driver or my connection................

i used thin driver for connection..........

please tell your suggestion

[435 byte] By [kingofpeacea] at [2007-11-27 9:11:56]
# 1

1. Is the accessing through IP address takes much time only first time, or throughout a session, it takes same amount of time.

2. You are saying that oracle and tomcat are on different machine and I believe that you would be accessing oracle through tomcat only..so you should access tomcat only...and accessing to tomcat is same as you access your own machine..just replace the IP address with the machine that hosts the tomcat.

vineet.mangala at 2007-7-12 21:57:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
i gavehost name also .. butits also take more time.............
kingofpeacea at 2007-7-12 21:57:59 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...