Skip navigation links
org.springframework.ws.transport.jms

Class JmsMessageSender

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static long DEFAULT_RECEIVE_TIMEOUT
      Default timeout for receive operations: -1 indicates a blocking receive without timeout.
      static String DEFAULT_TEXT_MESSAGE_ENCODING
      Default encoding used to read fromn and write to TextMessage messages.
      • Fields inherited from class org.springframework.jms.support.JmsAccessor

        logger
    • Constructor Summary

      Constructors 
      Constructor and Description
      JmsMessageSender()
      Create a new JmsMessageSender
      JmsMessageSender(javax.jms.ConnectionFactory connectionFactory)
      Create a new JmsMessageSender, given a ConnectionFactory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      WebServiceConnection createConnection(URI uri)
      Create a new WebServiceConnection to the specified URI.
      void setPostProcessor(org.springframework.jms.core.MessagePostProcessor postProcessor)
      Sets the optional MessagePostProcessor to further modify outgoing messages after the XML contents has been set.
      void setReceiveTimeout(long receiveTimeout)
      Set the timeout to use for receive calls.
      void setTextMessageEncoding(String textMessageEncoding)
      Sets the encoding used to read from TextMessage messages.
      boolean supports(URI uri)
      Does this WebServiceMessageSender support the supplied URI?
      • Methods inherited from class org.springframework.jms.support.destination.JmsDestinationAccessor

        getDestinationResolver, isPubSubDomain, resolveDestinationName, setDestinationResolver, setPubSubDomain
      • Methods inherited from class org.springframework.jms.support.JmsAccessor

        afterPropertiesSet, convertJmsAccessException, createConnection, createSession, getConnectionFactory, getSessionAcknowledgeMode, isClientAcknowledge, isSessionTransacted, setConnectionFactory, setSessionAcknowledgeMode, setSessionAcknowledgeModeName, setSessionTransacted
    • Field Detail

      • DEFAULT_RECEIVE_TIMEOUT

        public static final long DEFAULT_RECEIVE_TIMEOUT
        Default timeout for receive operations: -1 indicates a blocking receive without timeout.
        See Also:
        Constant Field Values
      • DEFAULT_TEXT_MESSAGE_ENCODING

        public static final String DEFAULT_TEXT_MESSAGE_ENCODING
        Default encoding used to read fromn and write to TextMessage messages.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JmsMessageSender

        public JmsMessageSender()
        Create a new JmsMessageSender

        Note: The ConnectionFactory has to be set before using the instance. This constructor can be used to prepare a JmsTemplate via a BeanFactory, typically setting the ConnectionFactory via JmsAccessor.setConnectionFactory(ConnectionFactory).

        See Also:
        JmsAccessor.setConnectionFactory(ConnectionFactory)
      • JmsMessageSender

        public JmsMessageSender(javax.jms.ConnectionFactory connectionFactory)
        Create a new JmsMessageSender, given a ConnectionFactory.
        Parameters:
        connectionFactory - the ConnectionFactory to obtain Connections from
    • Method Detail

      • setReceiveTimeout

        public void setReceiveTimeout(long receiveTimeout)
        Set the timeout to use for receive calls. The default is -1, which means no timeout.
        See Also:
        MessageConsumer.receive(long)
      • setTextMessageEncoding

        public void setTextMessageEncoding(String textMessageEncoding)
        Sets the encoding used to read from TextMessage messages. Defaults to UTF-8.
      • setPostProcessor

        public void setPostProcessor(org.springframework.jms.core.MessagePostProcessor postProcessor)
        Sets the optional MessagePostProcessor to further modify outgoing messages after the XML contents has been set.

Copyright © 2020 Pivotal Software. All rights reserved.