Use MSMQ recoverable messages in Rhino ESB when transactional=false

59 views
Skip to first unread message

René M. Andersen

unread,
Oct 14, 2013, 9:04:51 AM10/14/13
to rhino-t...@googlegroups.com
In the configuration of Rhino ESB you can specify if an endpoint should be transactional or not like shown below:

<rhino.esb>
  <bus threadCount="1" 
       numberOfRetries="5" 
       transactional="false" 
       endpoint="msmq://localhost/myqueue"/>
  <messages>
  </messages>
</rhino.esb>

If you set it to 'false' like in the example MSMQ messages is created as non-recoverable (default value for the MSMQ Message class Recoverable property).
Would it be an option to add a new 'recoverable' property to the configuration used to specify if the messages should be recoverable when not using transactions?

Combinations of 'transactional' and new 'recoverable properties':

Transactional  Recoverable  Description
true           false        Invalid. Should probably raise an exception. Alternatively, as today with transactional=true
true           true         As today with transactional=true
false          false        As today with transactional=false
false          true         New, means that Message.Recoverable will be set to true

Regards
René M. Andersen

René M. Andersen

unread,
Oct 22, 2013, 4:40:27 AM10/22/13
to rhino-t...@googlegroups.com
Any thoughts on this anyone??

We will of course supply the pull request if it is feasible, but would like to know if it will be accepted, since we would like to avoid running with a "custom" version of RSB.

Regards
René
Reply all
Reply to author
Forward
0 new messages