Installing the Service Activity Monitoring Agent into a Servlet container - 7.3

Talend ESB Infrastructure Services Configuration Guide

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-12-26

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.