Using Proxy JMS - 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

With this configuration logs can be collected from a JMS queue by decanter-collector-jms and then written into the ${karaf.data}/ eventmonitoring/em.log file.

Only Apache ActiveMQ Broker is supported in this release although the feature can work with other JMS Brokers.

Before using the JMS collector, the JMS feature must be installed in the Talend Runtime Container and a connection factory with the name tesbem must be created using the following commands in the Talend Runtime console, with <activemq-broker-host> and <activemq-broker-port> replaced by actual hostname/IP Address and port number of activemq-broker:
feature:install jms
jms:create -t activemq --url tcp://<activemq-broker-host>:<activemq-broker-port> tesbem 
The JMS collector can be configured in org.apache.karaf.decanter.collector.jms.cfg as follows:
# Name of the JMS connection factory
connection.factory.name=jms/tesbem
 
# Name of the destination
destination.name=eventmonitoring
 
# Type of the destination (queue or topic)
destination.type=queue
 
# Connection username
# username=
 
# Connection password
# password=
 
# Field configuration
fields.add.serverTimestamp = TIMESTAMP
fields.add.logTimestamp = TIMESTAMP
fields.add.eventUUID = UUID
fields.rename.event.topics = logMessage
fields.add.category = osgi
fields.add.eventType = OSGiEvent
fields.remove.subject = true
fields.add.agentId = agent1
To start the Event Monitoring with the JMS collector, enter the following command at the console prompt:
tesb:start-em-proxy-jms
You can stop it with:
tesb:stop-em-proxy-jms