ActiveMQ adapter is used to send messages. Messages are just what they sound like, payloads of data that can be shipped between various systems. These payloads can have headers and properties associated with them This adapter supports 3 types of data formats i.e. CSV, XML and JSON.
UseCase: Agent ActiveMQ Adapter for xml payload. #
Objective: Test ActiveMQ Inbound adapter for xml Format #
Pre-requisite: #
- Create Integration.
- Create Metadata Provider, IStructure Repository and Create Flat Message Type.
-
- Metadata Provider:Agent_ActiveMQ_RabbitMQ_JMS_Metadata
- IStructure Repository: RabitMQXML
- Message Type:Root
Steps: #
Step1:To Create Agent ActiveMQ xml Inbound Adapter:
- Go to Integration (Example: ActiveMQ Adapter)
- Click on link AGENT Control Board.
- Go to Adapter Tab and Click on New Button.
Step2 How to Create Agent ActiveMQ Xml Inbound Adapter:
- Click on link AGENT Control Board.
- Go to Adapter Tab and Click on New Button.
Configure Agent RabbitMQ xml Inbound Adapter: you need to enter adapter properties base on system requirement and Select Connection Destination (Example:Agent LINUX).
Step3: Create Integration and Inbound Interface:
- Inbound Interface:ActiveMQ_Inbound_xml
- Metadata: AgentRabitMQ_ActiveMQ_JMSCSV
- Respository:RabitMQXML
- MessageType:Root
- Adapter: ActiveMQ_Inbound_xml
Step4: Do mapping
Step 5: To Send Data ActiveMQ Server to Salesforce side follow the given step:
Check CSV Data on ActiveMQ Server:
- Open Link: http://18.197.54.48:15672/#/queues
- Username: admin
- Password: admin
Go to Queues:
- click on queues.
- check your queue is created. Here Name is ActiveMQ_inbound_xml
To send data click from ActiveMQ server:
- click on SEND
- Select your Destination
- Put your data in Message body section(It should be be minified)
- Click on send button to send data.
Check result on message monitor: