Tutorials

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

124.3 How to use RabbitMQ Inbound Adapter with JSON 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.

Note

We can check JSON Data on RabbitMQ Server:

 Link:http://18.197.54.48:15672/#/queues. Where exchange will be automatically created once you callout code.

 

UseCase: Agent RabitMQ Adapter for Json payload.

Objective: Test rabbitMQ Inbound adapter for Json Format

Pre-requiste:

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

Steps:

Step1:To Create Agent RabbitMQ JSONInbound Adapter:

  • Go to Integration (Example: Agent_RabbitMQ_Integration)
  • Click on link AGENT Control Board.
  • Go to Adapter Tab and Click on New Button.
Fandest du diesen Artikel hilfreich? Ja Nein

Wie können wir helfen?