473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems with connection pool for DB2400


Platform:

W2K
IIS 5.0
..NET 1.1
ADO.NET managed DB2 provider for iSeries

I wrote a web service which allows me to post records to the as/400

Occasionally there seem to be errors such as "Communication Problem".

I believe these are related to the connection pool.

We reboot our as/400 every week, and I think this is leaving the
connections in a hanging state.
As a way around that, I tried implementing the static method :

IBM.Data.DB2.iSeries.iDB2Connection.CleanupPooledC onnections();

But once that command is executed, I am no longer allowed to create a
iDB2Connection -- it seems to *nuke* every thing. It is sortof
expected as in the documentation they say to execute it only after the
app is closed. However, a web service never really /closes/ once it's
been started. With my web service, the only way I can connect after
that command is to restart my aspnet_wp.exe process from task manager.
This is also the way (other than rebooting the server) to recover
from the problem described above.
Question: Is there a way to clean up pooled connections from a web
service without having to restart the aspnet worker process?
Nov 12 '05 #1
1 2599
Yes, in ADO.NET 2.0.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

<ja*****@texeme.comwrote in message
news:R9********************@speakeasy.net...
>
Platform:

W2K
IIS 5.0
.NET 1.1
ADO.NET managed DB2 provider for iSeries

I wrote a web service which allows me to post records to the as/400

Occasionally there seem to be errors such as "Communication Problem".

I believe these are related to the connection pool.

We reboot our as/400 every week, and I think this is leaving the
connections in a hanging state.
As a way around that, I tried implementing the static method :

IBM.Data.DB2.iSeries.iDB2Connection.CleanupPooledC onnections();

But once that command is executed, I am no longer allowed to create a
iDB2Connection -- it seems to *nuke* every thing. It is sortof expected
as in the documentation they say to execute it only after the app is
closed. However, a web service never really /closes/ once it's been
started. With my web service, the only way I can connect after that
command is to restart my aspnet_wp.exe process from task manager. This is
also the way (other than rebooting the server) to recover from the problem
described above.
Question: Is there a way to clean up pooled connections from a web service
without having to restart the aspnet worker process?

Jul 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
3
by: Dale Hersh | last post by:
Hi Everyone, I have been using .net for a few weeks and I am getting the following two errors: 1. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This...
11
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a...
7
by: greg | last post by:
Hi We have w2k, iis5, .NET/c# I periodically receive this message and the system freezes ++++++++++++++++++++++++++++++++++++++++++++++++++ Timeout expired. The timeout period elapsed...
1
by: Lloyd Sheen | last post by:
I am running into the connection pool running out of connections problem. Error msg is : Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have...
5
by: Bendik Engebretsen | last post by:
Developed this personal WEB site with the new ASP.NET 2.0 Beta: http://www.techsoft.no/bendik/ It has got this problem: After a while browsing through pictures on the site, an error occurs: ...
10
by: Steven Blair | last post by:
As I understand it, if I create a connection object in my application and close the connection, the next time I open a connection with the same connection string I should be using a pooled...
2
by: JoeSep | last post by:
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
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...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.