Results 1 to 3 of 3

Thread: How to send response to JMSReplyTo.

  1. #1
    Join Date
    Feb 2005
    Posts
    47

    Default 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    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.

  3. #3
    Join Date
    Feb 2005
    Posts
    47

    Default

    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

Posting Permissions

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