How to configure different transaction scopes for JMS in SwitchYard component?

Solution Verified - Updated -

Issue

  • Consider the following use case in SwitchYard:
    1. message comes in to JMS endpoint
    2. Exception thrown
    3. Send audit message to another JMS endpoint
    4. 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.
  • 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.

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