Concurrent access of a COM+ ActiveX Server EXE method

  • Thread starter Thread starter vanisathish
  • Start date Start date
V

vanisathish

Hi,
I have doubt in implementing COM+ ActiveX Server EXE written in VC++.
These methods will be called from ASP pages. Now simultaneously when
more than 5 users access the method, the response becomes slow because
the access to methods are synchronised by locks inside. Actually these
methods are supposed to return XML DOM objects. Is there any way i can
do object pooling in my ActiveX Server EXE, so that multiple ASP pages
can access the same method simultaneously.?
 
I have doubt in implementing COM+ ActiveX Server EXE written in VC++.
These methods will be called from ASP pages. Now simultaneously when
more than 5 users access the method, the response becomes slow because
the access to methods are synchronised by locks inside. Actually these
methods are supposed to return XML DOM objects. Is there any way i can
do object pooling in my ActiveX Server EXE, so that multiple ASP pages
can access the same method simultaneously.?

what objects do you want to pool?
if they use the same lock, then pooling won't do you any good.

depending on your architecture, you might want to try to implement a
different locking algorithm. for example, multiple readers/1 writer locking,
or only lock the real shared data access instead of the whole method.

IF different objects do not use the same lock, then you could indeed create
a pool of objects within your server (a simple array or map of object
references) and use a different object for each connection that is made. you
only need to figure out which connection uses which object, and your problem
is solved.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top