How to configure different transaction scopes for JMS in SwitchYard component?
Issue
- Consider the following use case in SwitchYard:
- message comes in to JMS endpoint
- Exception thrown
- Send audit message to another JMS endpoint
- Roll original message back to JMS input queue.
- If the user tries this using various
switchyard.xmlconfigurations and Camel routing options:- If
jms:transacted=trueand exception thrown then message from 1) gets rolled back and message to 3) not sent. - If exception not thrown then message from 1) not rolled back and message to 3) is sent.
- If
jms:transacted=falseand exception thrown then message from 1) not rolled back.
- If
- How SwitchYard application can be configured so that message from 1) gets rolled back and message to 3) gets sent?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
