Repository navigation
INT-2722: document Delayer's <advice-chain> - #593
artembilan wants to merge 2 commits into
Conversation
* describe delayer's `<transactional>` & `<advice-chain>` abilities * polishing delayer's doc: it looks bad in the PDF * fix typo for 'proxying' JIRA: https://jira.springsource.org/browse/INT-2722
There was a problem hiding this comment.
This is an "interesting" use of the RHRA; it will "work" because the internal class run by the scheduler is a MessageHandler - however, the scope of the retry will be the entire downstream flow, which is really not the intent of the RHRA.
I am not saying it's wrong, or shouldn't necessarily be used here, but...
That said, I think you want the retry handler before the tx advice; otherwise the retry will occur within the scope of the transaction; I think you want the rollback to happen and then do the retry.
Maybe, rather than opening a can of worms here, and having to explain this use of retry, it would be better to use a class named, say "foo.MyAdvice".
A few grammar corrections in the paragraph above...
...applied to the proxy internal handler...
...has the responsibility to release the message Message after the delay in the <classname>Thread</classname> of on a scheduled task <classname>Thread</classname>. ...
...when the downstream throws an exception and the...
s/rollbacked/rolled back/
Via <code><advice-chain></code> y You can use any custom <interfacename>org.aopalliance.aop.Advice implementations within the <code><advice-chain></code>.
Please don't take these personally - I am in awe of anyone who can communicate in more than one language :-)
There was a problem hiding this comment.
Thank you, Gary, for all your comments.
About my english: I'm still not sure in its ideality. So, it's wonderful, if you all are correcting me ;-).
About RHRA: I've done it intentionally, you gave a comment: to be or not to be RHRA in this case, or the more in the <poller> or AMQP container 'advice-chain'.
However, as I see you start documentation issue about RHRA and I'm looking forward the usage of RHRA!
I'm going to remove this bean from sample. So, it will be saved from 'can of worms' ;-)
|
Pushed. |
|
LGTM, merging - Regarding your last comment, I will be pushing a PR for the message handler advice chain soon. |
<transactional>&<advice-chain>abilitiesJIRA: https://jira.springsource.org/browse/INT-2722