Message handlers and error handling

Cantor, Scott cantor.2 at osu.edu
Thu Apr 17 16:54:49 EDT 2014


On 4/16/14, 2:42 PM, "Brent Putman" <putmanb at georgetown.edu> wrote:
>
>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.

So, I'm actually looking into this, and there's a slight problem with
that, the inbound vs. outbound distinction. There might be a trick we
could use or a change to the execute step in the web flow, but as it
stands now, just calling execute() alone means the direction of the
handler has to be known at wrapping time, and that would limit a bean post
processor to wrapping only one direction of handlers in a flow.

I doubt you'd looked into this as far as to have an idea about that?

-- Scott




More information about the dev mailing list