Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7932685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:05:28+00:00 2026-06-03T21:05:28+00:00

Does the exception-pattern attribute on the commit-transaction tag work? That is, in a default

  • 0

Does the exception-pattern attribute on the commit-transaction tag work? That is, in a default exception strategy I can get this to work,

<commit-transaction exception-pattern="*"/>

but not this:

<commit-transaction exception-pattern="some.specific.Exception"/>

Here is a relevant snippet of the configuration:

<mule ...>
    <jms:activemq-connector name="JMSConnector" brokerURL="${messaging.brokerURL}" />
    <flow name="aFlow">
        <jms:inbound-endpoint name="endpoint.Name" queue="${queue}"
                              exchange-pattern="request-response"
                              connector-ref="JMSConnector" />
        <component>
            <spring-object bean="ThrowsBusinessException" />
        </component>

        <default-exception-strategy>
            <commit-transaction exception-pattern="com.BusinessException" />
        </default-exception-strategy>
    </flow>
</mule>

If I use exception-pattern="*", the JMS message is not re-delivered. However, if I use the more specific exception-pattern, the message is re-delivered. I don’t want the message to be re-delivered if the exception thrown is BusinessException.

This is in Mule CE 3.2.1

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:05:29+00:00Added an answer on June 3, 2026 at 9:05 pm

    The core issue is the following: all exceptions thrown by a component are wrapped in a org.mule.component.ComponentException.

    default-exception-strategy used to but now fails to unwrap this exception to its root cause, which means the exception-pattern gets applied to the org.mule.component.ComponentException.

    IMO this is a bug in Mule. I’ve opened MULE-6218. Please vote for/watch it.

    In the meantime, you can create a custom exception strategy that unwraps the Mule exceptions before to handling them. For this, use: ExceptionHelper.getRootException(ex)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

why does this code throw an exception? file = file.replaceAll(Pattern.quote(/),File.separator); Message: String index out
Probably a trivial question, but in which order does Exception::getTrace return calls? Most recent
Is there a way for something to raise and exception that does not descend
Does java has library exception class which means actually not an error, but good
Why does this code not print an exception stack trace? public class Playground {
* Simple question : Why does this function throw an exception when evaluated ?
Does a destructor get called if the app crashes? If it's an unhandled exception
This almost seems silly but what is the most reliable pattern to follow when
One recommendation I get out of the composite pattern is to provide default operations
My question is simple. Why wrong pattern matching does not throw exception in Maybe

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.