1. Home
  2. Dokumente
  3. Tutorials
  4. 124. How to develop inbound interface to consume message from RabitMQ queue?
  5. 124.2 How to use RabbitMQ Inbound Adapter with XML Payload?

124.2 How to use RabbitMQ Inbound Adapter with XML Payload?

Rabbit MQ differs from Active MQ and other message brokers in a way that we need to post a message to an Exchange provided by it. This Exchange will then forward the message to a queue or topic based on the routing key property.
This adapter supports 3 types of data formats i.e. CSV, XML and JSON.


We can check xml Data on RabbitMQ Server:

 Link: Where exchange will be automatically created once you callout code.


UseCase: Agent RabitMQ Adapter for xml payload.

Objective: Test rabbitMQ Inbound adapter for xml Format


  1. Create Integration.
  2. Create Metadata Provider, IStructure Repository and Create Flat Message Type.
    • Metadata Provider:Agent_ActiveMQ_RabbitMQ_JMS_Metadata
    • IStructure Repository: RabitMQXML
    • Message Type:Root


Step1:To Create Agent RabbitMQ xml Inbound Adapter:

  • Go to Integration (Example: Agent_new _adapter)
  • Click on link AGENT Control Board.
  • Go to Adapter Tab and Click on New Button.


Step2  How to Create Agent RabbitMQ 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:

Step4: Do mapping

In Inbound direction we don’t need to execute any callout logic because you are sending data RabbitMQ server to Salesforce side. You just need to start route example: go to adapter tab => All adapter will display in list view and you just need to click on start button and your route will be start automatically or you can change adapter status inactive to active and it’s also start route automatically. If you will make any changes inside adapter property then you need to stop route and start again after your changes will reflect to server.

Step 5: To Send Data RabbitMQ Server to Salesforce side follow the given step:

Upload XML Data from RabbitMQ Server:

  • Open Link:
  • Username: admin
  • Password: admin

Go to Exchange.

Click on Exchange name: RabitMQ_Inbound_xml

  •  Enter RoutingKey name same as configure inside adapter properties Example:RabitMQ_Inboound_XML.
  • Enter XML data inside Payload textarea.
  • Click on send button and check result on message monitoring.

After data sent successfully, you will get Message Published notification on Message monitor.



Fandest du diesen Artikel hilfreich? Ja Nein

Wie können wir helfen?