niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » IBM DB2
Problems with connection pool for DB2400
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
William (Bill) Vaughn
*nix forums beginner


Joined: 16 Jul 2006
Posts: 1

PostPosted: Sun Jul 16, 2006 5:18 am    Post subject: Re: Problems with connection pool for DB2400 Reply with quote

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

PostPosted: Tue Jul 05, 2005 3:42 pm    Post subject: Problems with connection pool for DB2400 Reply with 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
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 6:15 am | All times are GMT
navigation Forum index » Databases » IBM DB2
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Winbind problems for ADS authentication nlinley networking 1 Tue Sep 19, 2006 9:22 am
No new posts Problem with connection rafcio Exim 0 Sat Sep 16, 2006 1:46 pm
No new posts problems using oddmuse with mod_perl2 inside apache2.2 pe... Fergus McMenemie Perl 0 Fri Jul 21, 2006 9:48 am
No new posts Problems with make-kpkg and skas patch Todd A. Jacobs Debian 0 Fri Jul 21, 2006 12:30 am
No new posts Problems with relay control Félix Martos Trenado Postfix 3 Thu Jul 20, 2006 3:33 pm

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
[ Time: 0.1391s ][ Queries: 20 (0.0618s) ][ GZIP on - Debug on ]