About this task
From Talend ESB, you can enable the Service Activity Monitoring feature via a custom policy that the user can maintain and assign to a service via the Service Registry.
- Make sure the Talend Runtime is running, and the Service Registry service has been started. For more information, see the Talend ESB Container Administration Guide.
Import the Service Activity Monitoring policy to use, either directly from the Talend Runtime. For more
information, see Using the Service Registry with Talend ESB
or via the Talend Administration Center, for more information, see the
Talend Administration Center User Guide.
Talend ESB provides a default Service Activity Monitoring policy called wspolicy_sam.policy in its /add-ons/registry/policies folder. This policy is by default applicable for consumer, but you can modify it according to your need.
<wsp:Policy Name="wspolicy_sam" xmlns:wsp="http://www.w3.org/ns/ws-policy"> <wsp:ExactlyOne> <wsp:All> <tpa:ServiceActivityMonitoring xmlns:tpa="http://types.talend.com/policy/assertion/1.0" appliesTo="consumer" /> </wsp:All> </wsp:ExactlyOne> </wsp:Policy>Where
always(both consumer and provider).This parameter is restricted to events that can be monitored by the Service Activity Monitoring.
- Assign the policy to the service for which you want to activate the Service Activity Monitoring.