Tom Fennelly [
http://community.jboss.org/people/tfennelly] replied to the discussion
"Annotation based Action classes"
To view the discussion, visit:
http://community.jboss.org/message/539336#539336
--------------------------------------------------------------
Hi Hans.
Yes... this would be easy enough to do. Of course you'd need to analyse the class and
make sure there's exactly only one possible target @ProcessMethod, but that's
easy.
I think it could also be possible to support automatic unmarshalling/marshalling by
detecting that the target @ProcessMethod is arg is JAXB annotated. So, if the payload was
XML and the method arg was JAXB annotated, you could automatically trigger JAXB to create
the objects from the payload XML.
Then, for unmarshalling other payload types (non-XML), or for unmarshalling into objects
that are not JAXB annotated, or for servicing @ProcessMethods with multiple args.... you
could allow unmarshalling by defining a smooks binding config on the action.
Anyway... we'll see :)
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/539336#539336]
Start a new discussion in JBoss ESB Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]