Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-914

Support fire & forget in JmsMessageSender

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0.RELEASE, 2.2.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      The org.springframework.ws.transport.jms.JmsMessageSender sends a message for webservicetemplates. However, this can be a fire & forget message, returning void.
      If this happens, the underlying JmsSenderConnection (created by the JmsMessageSender) creates a temporary response queue, as specified in its documentation.
      However, as is, it is not possible to not do this. For a fire & forget service, no response is necessary (nor wanted), and no response queues should be created.

      I would like to see the option to not receive a response be a part of the jms URI. e.g. by having &replyToName=empty handle this implicitly, or by a separate value (&noResponse=true). This could then inform the JmsSenderConnection, which can then skip the whole handling of responses, as there are none... Or have it be a property which can be set on the sender.

      For now, I've created my own JmsMessageSender, which does not create a temporary queue, but I think it would be nice if you are able to specify this on the JmsMessageSender.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              koosg Koos Gadellaa
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: