Skip navigation links
spring-ws-support
org.springframework.ws.transport.jms

Class JmsMessageSender

    • 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(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.
      • createConnection

        public org.springframework.ws.transport.WebServiceConnection createConnection(URI uri)
                                                                               throws IOException
        Specified by:
        createConnection in interface org.springframework.ws.transport.WebServiceMessageSender
        Throws:
        IOException
      • supports

        public boolean supports(URI uri)
        Specified by:
        supports in interface org.springframework.ws.transport.WebServiceMessageSender
spring-ws-support