Robert Greig wrote:
2008/9/8 Gordon Sim <[EMAIL PROTECTED]>:
Andrew M wrote:
Do you guys think someone could implement this for M4?
https://issues.apache.org/jira/browse/QPID-1248
Yes, I'm going to try and get that done, its a useful feature to have.
Out of curiosity, is the easiest way to do this with a custom
exchange? Does the C++ broker support chaining of exchanges?
I haven't yet thought about it in sufficient detail, but I was imagining
allowing a 'replay queue' to be attached to an exchange instance (of any
of the existing types), and in bind requests for that exchange allowing
clients to ask that the queue they are binding first be populated with
messages from that replay queue (synchronised w.r.t. the incoming
message stream so nothing is lost).
The replay queue could then have policies on it restricting the number
of messages it retains etc. In the simple case it might just hold a
single message, but it could hold more than that if required.
Thoughts?