File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Spring Integration <method> Element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Integration <method> Element" Watch "Spring Integration <method> Element" New topic

Spring Integration <method> Element

Kaspar Christenson

Joined: Feb 26, 2009
Posts: 21

What is the <method> element doing, and where is it documented?

<gateway id="voidGateway"
<method name="process">
<header name="configuredHeader" value="abc"/>
M Fisher

Joined: Dec 17, 2010
Posts: 7
The <method> sub-elements in a <gateway> allow you to provide specific metadata for a single method of the gateway's interface. In the example you referenced, it's enabling a Message header to be added when that method is invoked.

Hope that helps.
Kaspar Christenson

Joined: Feb 26, 2009
Posts: 21

Thanks. I searched the reference manual and couldn't find a clear answer.
I agree. Here's the link:
subject: Spring Integration <method> Element
It's not a secret anymore!