Object or is it a ODBC/ADO connection so that Connection Pooling can be used
instead?
A object created in ASP by Server.CreateObject() and used on only a single
page only needs apartment threading model, so critical sections etc are not
required. - The object is created and thrown away at the end of each page.
With Object pooling it is possible that the object is not thrown away but
deactivated instead and put into the object pool, so the same rules will
still apply.
Depending on your licensing etc, you may still find a need to drop your
connection when the object is deactivated. You have no control under
MTS/COM+ of how this happens.
The other alternative would be to create an Application level object that
contains a list of available connections, and then each page level object
asks your application object for a unused connection.
Myles.
> -----Original Message-----
> From: Neil Anderson [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, 16 May 2000 15:10
> To: Multiple recipients of list delphi
> Subject: [DUG]: Thread and ASp
>
> Here we go again,
>
> I am investigating using object pooling in Win2000 because I need to
> create
> a link to a mainframe system and there is a delay of ~1.5 secs. I am
> planning to create the link during the initialization and store the handle
> in a private variable. At present I am storing a link in a Session
> variable
> but want to move away from this approach,
>
> I have the following question
>
> Do the variables declared in the private section need to be protected with
> critical sections etc.
> If so why, each page(ASP) will be calling the Server.Create method, do
> they
> each get a unique new object with their own variables ?
>
> Thanks Neil
> PS : I do not need to know if there are any spelling mistakes :)
> --------------------------------------------------------------------------
> -
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz