A serviced component is the mechanism that enables COM+ services to be available to .NET Framework classes. This section describes how to configure and register serviced components for access to COM+ services.
refer to ms-help://MS.MSDNQTR.2003APR.1033/cpguide/html/cpconwritingservicedcomponents.htmIn .net you can take advantage of COM+ service such as transaction and message queue (something like jms in j2ee).
refer to http://www.microsoft.com/China/Community/TechZone/TechArticle/TechDoc/usecom.aspIt tells you how to create and use com+ service
you allow the compoent to use transaction, object pooling, auto complete mechanism in com+ApplicationActivation specifies whether components in the assembly run in the creator's process or in a system process. You can specifies as Library or Server,i.e. [assembly: ApplicationActivation(ActivationOption.Library)], [assembly: ApplicationActivation(ActivationOption.Server.)] Specifies that serviced components in the ed application are activated in the creator's process or in the ed application are activated in a system-provided process. ApplicationName is the name of your application
ms-help://MS.MSDNQTR.2003APR.1033/cpguide/html/cpconwritingservicedcomponents.htmIn .net you can take advantage of COM+ service such as transaction and message queue (something like jms in j2ee).
http://www.microsoft.com/China/Community/TechZone/TechArticle/TechDoc/usecom.aspIt tells you how to create and use com+ service
[assembly: ApplicationName("ComTestServer")]
[assembly: ApplicationActivation(ActivationOption.Library)] [ Transaction(TransactionOption.Required) ]
[ ObjectPooling(true, 5, 10) ]
[ AutoComplete(true) ]
哪位给我回答一下,我不太明白。
You can specifies as Library or Server,i.e. [assembly: ApplicationActivation(ActivationOption.Library)], [assembly: ApplicationActivation(ActivationOption.Server.)]
Specifies that serviced components in the ed application are activated in the creator's process or in the ed application are activated in a system-provided process.
ApplicationName is the name of your application