Skip to main content Skip to complementary content

Installing the Service Activity Monitoring Agent into a Servlet container

About this task

Installing an Agent into a Servlet container (for example, Apache Tomcat or Jetty):

Procedure

  1. The Agent needs to be deployed with the customer's application. The best way to install the agent is to add it to the classpath using a Maven dependency:
    <dependency>
        <groupId>org.talend.esb</groupId>
        <artifactId>sam-agent</artifactId>
        <version>{talend esb version}</version>
    </dependency>
  2. With Spring, the Agent has to be added to the Spring context:
    <import resource="classpath:META-INF/tesb/agent-context.xml"/>
  3. Then, add the Agent as a jaxws:features to the endpoint/client for Spring-related services, for example:
    <import resource="classpath:/META-INF/tesb/agent-context.xml" />
    
    <jaxws:client
       id="customerService" address="/CustomerServicePort" 
       implementor="com.example.customerservice.server.CustomerServiceImpl"> 
       <jaxws:features>
           <ref bean="eventFeature"/>
       </jaxws:features>
    </jaxws:client>
    The Agent supports JMS and HTTP/HTTPS transport types in the same way.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!