Announcement Announcement Module
Collapse
No announcement yet.
How to send response to JMSReplyTo. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to send response to JMSReplyTo.

    Hi.

    I have this:

    <bean id="updateChannel" class="org.springframework.integration.dispatcher. SynchronousChannel" />

    <int:jms-source channel="updateChannel" message-converter="messageConverter" connection-factory="connectionFactory"
    destination-name="${ems.prefix}.update" />

    I have my service annotated with:

    @Service("updateService")
    @MessageEndpoint(input = "updateChannel")

    and the handling method:

    @Handler
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public String handleRequest(final Message<String> request) {

    How can I have the String returned by the @Handler send to the JMSReplyTo set on the request Message?

    Thanks,

    /Magnus

  • #2
    If you are using the latest SVN head version, you can try the "jms-gateway" instead of "jms-source". The idea is that a gateway provides request/reply behavior rather than in-only. The JMS gateway is a work-in-progress but will be available (and documented) in M4.

    Comment


    • #3
      Great, that sounds just like what I am looking for.

      I'd rather wait for the M4 release. How up2date is the roadmap http://jira.springframework.org/brow...:roadmap-panel and estimated release date there?

      /Magnus

      Comment

      Working...
      X