Skip to content

Instantly share code, notes, and snippets.

@RyanHauert
Created October 24, 2012 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanHauert/3949563 to your computer and use it in GitHub Desktop.
Save RyanHauert/3949563 to your computer and use it in GitHub Desktop.
RSB 3.0 Customize outgoing messages by destination
<rhino.esb>
<bus threadCount="1"
numberOfRetries="5"
endpoint="rhino.queues://localhost/test_queue?volatile=true"
queueIsolationLevel="ReadCommitted" />
</rhino.esb>
public class CustomizeForVolatileEndpoints : ICustomizeOutgoingMessages
{
public void Customize(OutgoingMessageInformation messageInformation)
{
if (messageInformation.Destination != null &&
messageInformation.Destination.Uri.Query.ToUpperInvariant().Contains("VOLATILE=TRUE")))
{
messageInformation.MaxAttempts = 2;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment