Add the ability to configure in/out/fault handlers with Jsr181HandlerMapping
----------------------------------------------------------------------------
Key: XFIRE-853
URL: http://jira.codehaus.org/browse/XFIRE-853
Project: XFire
Issue Type: Improvement
Components: Spring
Affects Versions: 1.2.4
Reporter: Mark Slater
Assigned To: Dan Diephouse
Attachments: Jsr181HandlerMapping.java.patch
I'm trying to migrate my XFire usage from XFireExporter style of specifying
services to the Jsr181HandlerMapping style. One of the things I ran into was
that the Jsr181HandlerMapping doesn't support the inHandlers proerty from
XFireExporter. I suspect that's because the expected way of doing message
handlers with JSR-181 is via the @HandlerChain annotation. Unfortunately, I
wasn't able to find a good explanation of how to use this within XFire such
that the handlers would be loaded via spring with all their properties
wired-in. I did find the @InHandlers annotation that was added to XFire
recently, but that had the same problem - the handler object was created
without going through Spring, so its dependencies weren't available.
So I came up with my own solution. I simply added the inHandler, outHandler,
and faultHandler properties to the Jsr181HandlerMapping class, so they can be
wired in just like they were with XFireExporter. And things work beautifully,
for me at least.
I've attached a patch file that adds the code to the Jsr181HandlerMapping class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email