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.xml
configurations and Camel routing options:- If
jms:transacted=true
and 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=false
and 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, tools, and much more.