aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Integration <method> Element" Watch "Spring Integration <method> Element" New topic
Author

Spring Integration <method> Element

Kaspar Christenson
Greenhorn

Joined: Feb 26, 2009
Posts: 21

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

<gateway id="voidGateway"
default-request-channel="inputChannel"
service-interface="org.springframework.integration.samples.testing.gateway.VoidGateway">
<method name="process">
<header name="configuredHeader" value="abc"/>
</method>
</gateway>
M Fisher
author
Greenhorn

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.
-Mark
Kaspar Christenson
Greenhorn

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: http://aspose.com/file-tools
 
subject: Spring Integration <method> Element
 
Similar Threads
Does the order of unchecked and method matter ?
EJB Gateway
Q 12, Eduardo's mock
JavaScript submit() method
How can I get the gateway's IP of my PC in java?