Skip to content

INT-2722: document Delayer's <advice-chain> - #593

Closed
artembilan wants to merge 2 commits into
spring-projects:masterfrom
artembilan:INT-2722
Closed

artembilan wants to merge 2 commits into
spring-projects:masterfrom
artembilan:INT-2722

Conversation

@artembilan

Copy link
Copy Markdown
Member
  • describe delayer's <transactional> & <advice-chain> abilities
  • polishing delayer's doc: it looks bad in the PDF
  • fix typo for 'proxying'
  • added note into Migration Guide

JIRA: https://jira.springsource.org/browse/INT-2722

* 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
Comment thread src/reference/docbook/delayer.xml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :-)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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' ;-)

@artembilan

Copy link
Copy Markdown
Member Author

Pushed.
Thank you again, Gary

@garyrussell

Copy link
Copy Markdown
Contributor

LGTM, merging -

Regarding your last comment, I will be pushing a PR for the message handler advice chain soon.

garyrussell added a commit to garyrussell/spring-integration that referenced this pull request Aug 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants