|
|
|
|
|
|
| Author |
Message |
William (Bill) Vaughn *nix forums beginner
Joined: 16 Jul 2006
Posts: 1
|
Posted: Sun Jul 16, 2006 5:18 am Post subject:
Re: Problems with connection pool for DB2400
|
|
|
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.
__________________________________
<jabailo@texeme.com> wrote in message
news:R9mdnZqg9_z2W1ffRVn-1w@speakeasy.net...
| Quote: |
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.CleanupPooledConnections();
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? |
|
|
| Back to top |
|
 |
Humphrey Bogart *nix forums Guru Wannabe
Joined: 23 Apr 2005
Posts: 278
|
Posted: Tue Jul 05, 2005 3:42 pm Post subject:
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.CleanupPooledConnections();
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? |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Tue Dec 02, 2008 6:15 am | All times are GMT
|
|
Credit Card Consolidation | Problem Mortgage | Personal Loans | Electricity Suppliers | Web Designer
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|