How to deal with different formats of incoming message payloads for an ESB service with multiple listeners
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 atry
/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.