Results 1 to 3 of 3

Thread: Dynamic destination using jms:outbound-channel-adapter

  1. #1

    Default Dynamic destination using jms:outbound-channel-adapter

    Hi all,

    I'm designing an application where I need to send messages to a dynamically chosen JMS Topic. The topic should be resolved from the information contained in the Message to be sent.
    I understand this can be done using a Router. However that approach requires the creation of a MessageChannel for every single topic I may use.

    I'd like to use a jms : outbound-channel-adapter and use a single JmsTemplate to achieve the same result.
    Looking at the source code (2.0.0.M3), I see that this could be done modifying org.springframework.integration.jms.JmsSendingMess ageHandler, using a MessageProcessor (if available) to resolve the topic name from the Message and then calling JmsTemplate.convertAndSend(String destinationName, final Object message) with the resolved name and the message.

    Is this approach reasonable? Can you think of another way of resolving this?

    Thanks in advance.

    Andrés

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    It seems that you're talking about a JMS version of this:
    http://jira.springframework.org/browse/INT-612

    Please open a new issue for that if you don't mind.

    Thanks,
    Mark

  3. #3

    Default

    I've opened an issue here:

    http://jira.springframework.org/browse/INT-1109

    Let me know if the description is adequate.

    Thanks,
    Andres

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •