Unix Technical Forum

Problems with connection pool for DB2400

This is a discussion on Problems with connection pool for DB2400 within the DB2 forums, part of the Database Server Software category; --> Platform: W2K IIS 5.0 ..NET 1.1 ADO.NET managed DB2 provider for iSeries I wrote a web service which allows ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 04:13 AM
jabailo@texeme.com
 
Posts: n/a
Default 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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 07:40 AM
William \(Bill\) Vaughn
 
Posts: n/a
Default 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...
>
> 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?



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com