Re: Where to store the handle of a web service between requests?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



store in the Application object and use a pool approach. you could add a
background thread to age the pool (close and delete aged connections).

note: most http based webservices are single shot and close the connection
automatically after every request. even if keepalive is set, its for only a
short period.

-- bruce (sqlwork.com)

"Max" <eurodude2011@xxxxxxxxx> wrote in message
news:1kbjpx4te1s3q.89g2dvulzyxp.dlg@xxxxxxxxxxxxx
> Hi,
>
> I am helping to build a web app that's pretty much a wrapper around a web
> service. The question now is how to store the handle of the web service
> object between requests. My client is using SQL server for session state
> so
> I don't think I can store the web service handle there since it's not
> serializable.
>
> Opening up a connection to this particular service is quite slow so I
> don't
> want to reopen it for every request.
>
> I am looking for suggestions how to store the web service handle. Any
> ideas?
>
> Thanks
>
> Hans


.



Relevant Pages

  • Re: [J2EE] webservice connection pool
    ... use toward my web service (in order to avoid the overhead of the tcp/ip ... connection pool to access the database. ... HTTP. ...
    (comp.lang.java.programmer)
  • Re: weird error
    ... that's out of the question perhaps you can add some temporary code to log en ... >> your Web service? ... >>> connection from the pool.This may have occurred because all pooled ... >>> connections were in use and max pool size was reached. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: weird error
    ... but it seems your Web service is not closing the connection and ... > getting the following error message: ... > Timeout expired.The timeout period elapsed prior to obtaining a connection ... > in use and max pool size was reached. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: weird error
    ... but it seems your Web service is not closing the connection and ... > your Web service? ... >> connection from the pool.This may have occurred because all pooled ... >> connections were in use and max pool size was reached. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Where to store the handle of a web service between requests?
    ... The question now is how to store the handle of the web service ... >> object between requests. ... >> Opening up a connection to this particular service is quite slow so I ...
    (microsoft.public.dotnet.framework.aspnet)