This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.
subject: Spring Integration <method> Element
Similar Threads
How can I get the gateway's IP of my PC in java?
Q 12, Eduardo's mock
JavaScript submit() method
Does the order of unchecked and method matter ?
EJB Gateway