you get DB connection pooling even without using MTS - IIS is so tightly
tied into MTS, it does it for you when you ask for a DB connection - its
quite funkey, unless you need to increase the size of the pool.

N

[EMAIL PROTECTED] wrote:
> 
> tmBoth means apartment and free.
> 
> The March 99 issue of Dlephi informat has a good article on creating ASP
> components.  Since you are using IIS4 then you may find it better/easier to
> create an MTS components - this will give you db connection pooling.
> 
> Myles Penlington <[EMAIL PROTECTED]> on 30/04/99 14:39:59
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   Multiple recipients of list delphi <[EMAIL PROTECTED]>
> cc:    (bcc: Peter Jones/Logistics&Information
>       Technology/Christchurch/Foodstuffs)
> Subject:  [DUG]:  IIS4.0 Application() Object Access & OLE Object.
> 
> I've created a OLE object with a "tmBoth" threading model, but when attempt
> to use this in the global.asa file so it can be stored in the application
> object, we get an error -
> 
> Application object error 'ASP 0197 : 80004005'
> Disallowed object use
> Cannot add object with apartment model behaviour to the application
> intrinsic object.
> 
> Why does it still think the object follows the "apartment" threading
> model??. I've looked at the IIS Doc's and they talk about having to use
> "CoCreateFreeThreadedMarshaler" - is this a requirement  and does anybody
> having any examples of doing this?? This seems to apply I need to write a
> new "Comserver" object - any ideas anybody??
> 
> The code which causes it in VBScript - on Application start.
> Set  DBObj = Server.CreateObject("MyObject.DBM")
> Set       Application("DBObj") = DBObj
> 
> Regards
> 
> Myles Penlington
> Software Engineer
> ADVANCED MANAGEMENT SYSTEMS
> 
> ---------------------------------------------------------------------------
>     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
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to