SunQuest
           DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 18th, 2007, 08:26 PM
m_sharma98 m_sharma98 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 3 m_sharma98 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 54 sec
Reputation Power: 0
Unhappy DB2 connection time out error

Hi to all,
I have wrote a jsp-servlet program(using struts) which connects to DB2 via JDBC.

I am using Tomcat5.5.
JDBC driver as400thinjdbc.jar .
DB connection paramaters are

<data-sources>
<data-source id="DB2" type="org.apache.tomcat.dbcp.dbcp.BasicDataSource">
<set-property property="username" value="XXXX"/>
<set-property property="maxActive" value="10"/>
<set-property property="password" value="XXXX"/>
<set-property property="url" value="jdbc:as400://XX.XX.XX.XX/MYLIB"/>
<set-property property="defaultAutoCommit" value="false"/>
<set-property property="maxWait" value="5000"/>
<set-property property="driverClassName" value="com.ibm.as400.access.AS400JDBCDriver"/>
</data-source>
</data-sources>


The program is running fine and giving me all the expected values from DB2 BUT after 1hr or 2 or 3hrs of discontinuity from my web application,when I try to connect DB2 it takes 10-15 minutes.
Sometimes it gives "Connection time out error" stating in my log file.

I googled the internet but couldn't found any satisfied solution.

I changed my driver to jt400.jar but no luck.

Can you experts please point out the mistake I am doing.

Thanks in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > DB2 connection time out error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway