0 оценок0% нашли этот документ полезным (0 голосов)
208 просмотров2 страницы
COM+ services provide features like just-in-time activation, role-based security, synchronization using locks, object pooling, and transactions. Components use attributes to configure these features, like [Synchronization] to manage access from multiple clients and [Objectpooling] to create a specified number of instances. Message queuing allows clients to send messages even if a component is unavailable. Configuring a COM+ component involves attributes, registration, and implementing the ServicedComponent interface.
COM+ services provide features like just-in-time activation, role-based security, synchronization using locks, object pooling, and transactions. Components use attributes to configure these features, like [Synchronization] to manage access from multiple clients and [Objectpooling] to create a specified number of instances. Message queuing allows clients to send messages even if a component is unavailable. Configuring a COM+ component involves attributes, registration, and implementing the ServicedComponent interface.
COM+ services provide features like just-in-time activation, role-based security, synchronization using locks, object pooling, and transactions. Components use attributes to configure these features, like [Synchronization] to manage access from multiple clients and [Objectpooling] to create a specified number of instances. Message queuing allows clients to send messages even if a component is unavailable. Configuring a COM+ component involves attributes, registration, and implementing the ServicedComponent interface.
Role -based security - Security Provider Synchronization - Locks Object pooling - Transactions Queued components for COM+ service inherit ServicedComponent & import System.EnterpriseService [SecurityRole("manager"),seteveryoneAcess=false)] In used to secure distirbuted application [Synchronization(SynchronizationOption.Required)] To manage multiple Clients [Objectpooling (Enable=true, MinPoolsize=1, MaxPoolSize=250)] To create a specified number of instances at a time and store them in a pool [Transaction(TransactionOption.Required)] Grouping various related operations as an atomic unit [assembly: ApplicationQueuing[Enabled=true,QueueListenerEnabled=true)] namespace Mycomponent{ public class Class1:ServicedComponent {} } Message Queuing - Enables Client to send a message to a Com+ serviced component even if the component is not available due to network connectivity Creating COM+ ServicedComponent Configure the Component Register the Component ApplicationAccessControlAttribute ApplicationActivationAttribute JustInTimeActivationAttribute ObjectPoolingAttribute SecureMethodAttribute -Security Service ServicedComponent - to implement COM+ SharedProperty TransactionAttribute Configure .net component Registering Manual Programmatic Dynamic