Announcement Announcement Module
Collapse
No announcement yet.
Router example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Router example

    Hi,

    I am having a Router issue. I have multiple messages coming in on a socket as a result of multiple messages being sent on the socket and I need to route them back to the service activator that needs to process them.

    I was thinking of creating a header enhancer that would add the channel name as a header back onto the message when it lands.

    My message header saving class would need to have a map so I can map the responses back to the channels that need them.

    So I would create a map entry when the message was sent of "id" (Spring Message id header value) and the name of the channel that is to receive the response.

    Then I could add the channel name header back onto the message and use a Router to route the message back to the needed channel.

    Am I going about this correctly or is there another approach?

  • #2
    Hi Frank,
    I think instead of using Router in order to resolve your issue, you can use a new Socket for each message. As an example, https://github.com/SpringSource/spri...rver-multiplex
    Hope that helps.

    Comment

    Working...
    X