Message handlers and error handling

Brent Putman putmanb at georgetown.edu
Wed Apr 16 14:42:01 EDT 2014


On 4/15/14 12:24 PM, Cantor, Scott wrote:
>> Right ... I have been wondering if handler chains should be sub-flows
>> instead. Not sure that is possible or helps us here.
> I've thought about it. The advantage now, apart from just the lack of
> overhead, is that they're very easy to wire together with Spring alone and
> are easier to customize, but I admit it's inconsistent. Using actual
> subflows would mean there'd be event transitions obviously, and the one
> that actually fails would surface as the subflow result.

Yeah, like I said in the other note, the message handler chain was just
a useful library abstraction.  If in the IdP it makes more sense to wrap
each MessageHandler in an adaptor, and then possibly execute it in a
subflow, that's probably fine.  I can't off-hand think of any problems
of that, other than the XML wiring ugliness.  To address the latter, you
may remember that I speculated once that a BeanPostProcessor (or is it
BeanFactoryPostProcessor?...) could possibly be used to automagically
turn a MessageHandler into an Action bean.  Not 100% sure that that
works, but might be worth pursuing if we go that route.



More information about the dev mailing list