Discussion:
Configuring COM+ application pooling and recycling settings
(too old to reply)
p***@yahoo.com
2007-08-19 06:47:42 UTC
Permalink
Hi,

I have created a COM+ component in C#. Developing COM+ in C# is really
easy now. System.Enterpriseservices namespace provides almost all
resources required for developing and configuring your COM+ component.

The only weired thing I found is that System.Enterpriseservices
namespace does not provide any attributes for configuring 'application
pooling and recycling' settings.

can anyone point me to the way of configuring COM+ 'application
pooling and recycling' settings programatically ?

Thanks in advance...
PRISM
2007-11-06 18:15:03 UTC
Permalink
Just ran across this. I know it's been awhile and maybe you've found a
solution, but incase you haven't.

I think all you have to do is something like this to create/configure the
package and the component:

using System;
using System.Collections.Generic;
using System.EnterpriseServices;
using System.Runtime.InteropServices;
using System.Text;

[assembly: Description("My Package")]
[assembly: ApplicationName("My Reports")]
[assembly: ApplicationActivation(ActivationOption.Server)]
[assembly:
ApplicationAccessControl(false,ImpersonationLevel=ImpersonationLevelOption.Identify,
AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent,Authentication=AuthenticationOption.None,Value=false)]
namespace MyCOMPackage
{
[ObjectPooling(Enabled=true, MinPoolSize=0, MaxPoolSize=5,
CreationTimeout=3)]
[JustInTimeActivation(false)]
[EventTrackingEnabled(true)]
[ComVisible(true)]
public class MyCOMPackage : ServicedComponent
{
public MyCOMPackage()
{
}
}
}
--
AY
Post by p***@yahoo.com
Hi,
I have created a COM+ component in C#. Developing COM+ in C# is really
easy now. System.Enterpriseservices namespace provides almost all
resources required for developing and configuring your COM+ component.
The only weired thing I found is that System.Enterpriseservices
namespace does not provide any attributes for configuring 'application
pooling and recycling' settings.
can anyone point me to the way of configuring COM+ 'application
pooling and recycling' settings programatically ?
Thanks in advance...
Loading...