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.j ar .
DB connection paramaters are <data-sources>
<data-source id="DB2" type="org.apach e.tomcat.dbcp.d bcp.BasicDataSo urce">
<set-property property="usern ame" value="XXXX"/>
<set-property property="maxAc tive" value="10"/>
<set-property property="passw ord" value="XXXX"/>
<set-property property="url" value="jdbc:as4 00://XX.XX.XX.XX/MYLIB"/>
<set-property property="defau ltAutoCommit" value="false"/>
<set-property property="maxWa it" value="5000"/>
<set-property property="drive rClassName" value="com.ibm. as400.access.AS 400JDBCDriver"/>
</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,whe n 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.
2 2513
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.j ar .
DB connection paramaters are <data-sources> <data-source id="DB2" type="org.apach e.tomcat.dbcp.d bcp.BasicDataSo urce"> <set-property property="usern ame" value="XXXX"/> <set-property property="maxAc tive" value="10"/> <set-property property="passw ord" value="XXXX"/> <set-property property="url" value="jdbc:as4 00://XX.XX.XX.XX/MYLIB"/> <set-property property="defau ltAutoCommit" value="false"/> <set-property property="maxWa it" value="5000"/> <set-property property="drive rClassName" value="com.ibm. as400.access.AS 400JDBCDriver"/> </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,whe n 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.
Copied to DB2 forum
yes he is right ...
u better to go for DB2
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Ben M. |
last post by:
Greetings all,
This should be an easy task, and Im sure it is, but as many times as I have
tried, I cant seem to get this to work properly.
We changed ISPs recently from a shared host to a co-located server, and our
former host was nice enough to send us a backup of our old SQL2000 database
(about 5MB).
I went into Enterprise Manager, created an empty database with the same name
|
by: news |
last post by:
Well, I wrote my first PHP class today. Yeah!
But to get it to work, in each function within the class I have to
repeat the database connection lines, and that just seems redundant;
there has to be a better way that I'm just not bright enough to think
of.
Any suggestions?
(It's the first 3 lines of each of the two functions below. When I have
it fully written, there will be about 10 similar functions, each
repeating those three lines.)
|
by: Maellic |
last post by:
Hi,
The website I am working on is built with ASP.NET and connects to a
SQL Server 2000 database. The web server and database are on the same
machine. I have recently tried to modify the timeout of the website
from 20 mn to 60 mn. I changed the timeout setting in IIS. Now the
website itself doesn't time out, however after 20 mn, when I try to
access a page that needs to connect to the database, I get the
following error message
|
by: Nick Gilbert |
last post by:
Hi,
I have an asp.net application which runs from a CD-ROM using Cassini. As
such, it is single user only.
The application connects to an Access database when it is loaded, and
keeps the same connection open all the time (as it's single user, this
shouldn't be a problem).
There is logic in the code to ensure that the connection is
|
by: News |
last post by:
Hello, I have to build a program with the future in mind and I need a bit
of guidance from a guru or two. My program will start as a multi-user
Windows Application built with VB.Net and using an Access 2002 database
backend. The future will require that 1. The database be switched with
minimal effort to SQL Server and 2. A Web Application be added to allow web
access to reports generated from the database. At this time, there is no...
| |
by: Martin B |
last post by:
Hallo!
I'm working with C# .NET 2.0, implementing Client/Server Applications which
are connecting via Network to SQL-Server or Oracle Databases.
To stay independent from the underlaying Database I use
System.Data.Common.DBConnection and .DBCommand.
How can I keep aware from connection losses (network not availeable,
db-server not available...)?
Are there any strategies to detect this broken connections, and how can I
|
by: josh.kuo |
last post by:
Sorry about the subject, I can't think of a better one.
I recently wrote some PHP classes that I think might be of interest to
this group. Since I have been reaping the benefits of reading news
groups for years, I figure it's time for me to contribute a little bit
back, maybe some people out there will find this useful.
* Introduction
This is a "how-to" style article, showing by example how to dynamically
|
by: bartonc |
last post by:
With one small change to the view/control:
self.staticText3 = wx.StaticText(id=wxID_DBCONNECTDIALOGSTATICTEXT3,
label='ODBC Data Source Name', name='staticText3', parent=self, pos=wx.Point(240,
40), size=wx.Size(143, 16), style=0)
and some rework of the model:##from MySQLdb import *
from mx.ODBC.Windows import *
from time import time
class DBServer:
def __init__(self, master):
|
by: Atli |
last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t.
In situations where your PHP application needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store files.
...
|
by: alex |
last post by:
I've converted a latin1 database I have to utf8. The process has been:
# mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore
--skip-set-charset mydb mydb.sql
# iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql
mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |