[mule-user] until successful exceptions handling

293 views
Skip to first unread message

venkata venkata

unread,
Mar 7, 2012, 7:01:29 PM3/7/12
to us...@mule.codehaus.org
Hi ,
I am using until-successful component for message retry. If an exception is thrown by outbound-component the message is logged in console but not able to retrieve in payload.getExceptionPayload().getException() retuens null

Basically i want catch the exception and send it in email through smtp.

Can some one help me out.

Below is my code --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

David Dossot

unread,
Mar 7, 2012, 7:09:42 PM3/7/12
to us...@mule.codehaus.org
Use a dlqChannel on until-successful to forward the message in permanent delivery failure to a flow where error processing can be done.

D.

Tomas Blohm

unread,
Mar 8, 2012, 4:52:30 AM3/8/12
to us...@mule.codehaus.org
Hi,

can you show us your config?
Do you wan't to send an email every time the exception occurs or only when you reached maxRetries? If so, did you configure a dlqEndpoint-Ref?

/Tomas Blohm --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

venkata venkata

unread,
Mar 8, 2012, 8:25:31 PM3/8/12
to us...@mule.codehaus.org
Below is the config

I want to send the email after it reached max retries and configured deadLetterQueue-ref to smtp --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

venkata venkata

unread,
Mar 9, 2012, 2:56:32 PM3/9/12
to us...@mule.codehaus.org
Hi Thomas,
The reference is global end point and not in the flow. From above code until-successful is inside flow --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

David Dossot

unread,
Mar 9, 2012, 7:18:32 PM3/9/12
to us...@mule.codehaus.org
I've checked the source code and indeed the last exception received before sending the undeliverable message to the DLQ is not set as the exception payload.

It sounds like a reasonable feature request IMO so I've opened a ticket for you: http://www.mulesoft.org/jira/browse/M... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Tomas Blohm

unread,
Mar 9, 2012, 2:49:31 AM3/9/12
to us...@mule.codehaus.org
I think the ref has to be to a global endpoint, it looks like your endpoint is part of the flow. Don't you get any errors in the log?

/Tomas Blohm --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

venkata venkata

unread,
Mar 11, 2012, 12:41:35 AM3/11/12
to us...@mule.codehaus.org
Thanks David --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Reply all
Reply to author
Forward
0 new messages