Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Integration <method> Element

 
Kaspar Christenson
Greenhorn
Posts: 21
Mac Scala VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
Mac Scala VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I searched the reference manual and couldn't find a clear answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic