How to deal with different formats of incoming message payloads for an ESB service with multiple listeners

Solution Unverified - Updated -

Issue

  • Let's say I create an ESB service that has an SQL listener and a JMS listener, and these are both gateway listeners. These listeners format their message payloads differently.
  • Is there some best practice for translating the message? For example, since the SQL listener payload would be a Map, try that first in a try / catch block, and if that fails try the JMS format?

Environment

  • JBoss Enterprise SOA Platform (SOA-P)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content