java - Spring integration router configuration -



java - Spring integration router configuration -

i struggling find examples using @router annotation. if understanding javadocs correctly:

@service public class agentserviceimpl implements agentservice { @override @router(inputchannel = "agentlogin", defaultoutputchannel = "agentserviceresponse") public agentloginresponse login(agentloginrequest request) { } }

in xml examples router there service-activator, getting hung on trying figure out how fit in.

actually wrong way. see @router javadocs:

* indicates method capable of resolving channel or channel name * based on message, message header(s), or both.

so, login method target router component must homecoming channel name or entire messagechannel object.

java spring spring-integration

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -