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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.