Create Backout Queue based on retry count

Hi,

I have a requirement in my Project, where in there is a need to move messages from a main Queue a Back out queue based on the Retry count - the scenario is

  1. There is a Queue A in UM,
  2. Consumer would be consuming the messages through Java Client, the messages from Queue A.
  3. Consumer on processing the message ( OnMessage) can roll back the transaction, where the message would go back to the Queue A
  4. When the retry reaches a limit say 5, then the message should be removed from Queue A and Posted to Error Queue Queue B.

This is just a configuration in WMB and things happen automatically in the back end. wanted to understand how this would be configured in Universal Messaging? I was looking at the Create Queue option in UM and didn’t find these options.
Any help would be highly appreciated.

thanks,
Srini