Skip to content

Instantly share code, notes, and snippets.

@arthurtsang
Last active December 15, 2015 09:39
Show Gist options
  • Save arthurtsang/5239788 to your computer and use it in GitHub Desktop.
Save arthurtsang/5239788 to your computer and use it in GitHub Desktop.
dynamic service activator
<bean id="svcDynamicServiceActivator" class="DynamicServiceActivator">
<property name="expressionToReplyChannel">
<map>
<entry>
<key><value>getServices</value></key>
<list>
<value>@bean.getServices(headers['user'])</value>
<value>aggregateSvcRequests</value>
</list>
</entry>
<entry>
<key><value>getService</value></key>
<list>
<value>@bean.getService(headers['serviceId'],payload)</value>
<value>serviceResponse</value>
</list>
</entry>
<entry>
<key><value>requestService</value></key>
<list>
<value>@bean.requestService(headers['serviceId'],payload)</value>
<value>serviceResponse</value>
</list>
</entry>
</map>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment