interface JmsMessageOperations : MessageSendingOperations<Destination>, MessageReceivingOperations<Destination>, MessageRequestReplyOperations<Destination>
A specialization of MessageSendingOperations, MessageReceivingOperations and MessageRequestReplyOperations for JMS related operations that allow to specify a destination name rather than the actual javax.jms.Destination
Author
Stephane Nicoll
Since
4.1
See Also
org.springframework.jms.core.JmsTemplateorg.springframework.messaging.core.MessageSendingOperationsorg.springframework.messaging.core.MessageReceivingOperationsorg.springframework.messaging.core.MessageRequestReplyOperations
abstract fun convertAndSend(destinationName: String, payload: Any): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message and send it to the given destination. abstract fun convertAndSend(destinationName: String, payload: Any, headers: MutableMap<String, Any>): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers and send it to the given destination. abstract fun convertAndSend(destinationName: String, payload: Any, postProcessor: MessagePostProcessor): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message, apply the given post processor, and send the resulting message to the given destination. abstract fun convertAndSend(destinationName: String, payload: Any, headers: MutableMap<String, Any>, postProcessor: MessagePostProcessor): Unit
Convert the given Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers, apply the given post processor, and send the resulting message to the given destination. |
|
abstract fun <T : Any> convertSendAndReceive(destinationName: String, request: Any, targetClass: Class<T>): T
Convert the given request Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, send it as a Message to the given destination, receive the reply and convert its body of the specified target class. abstract fun <T : Any> convertSendAndReceive(destinationName: String, request: Any, headers: MutableMap<String, Any>, targetClass: Class<T>): T
Convert the given request Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, send it as a Message with the given headers, to the specified destination, receive the reply and convert its body of the specified target class. abstract fun <T : Any> convertSendAndReceive(destinationName: String, request: Any, targetClass: Class<T>, requestPostProcessor: MessagePostProcessor): T
Convert the given request Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, apply the given post processor and send the resulting Message to the given destination, receive the reply and convert its body of the given target class. abstract fun <T : Any> convertSendAndReceive(destinationName: String, request: Any, headers: MutableMap<String, Any>, targetClass: Class<T>, requestPostProcessor: MessagePostProcessor): T
Convert the given request Object to serialized form, possibly using a org.springframework.messaging.converter.MessageConverter, wrap it as a message with the given headers, apply the given post processor and send the resulting Message to the specified destination, receive the reply and convert its body of the given target class. |
|
abstract fun receive(destinationName: String): Message<*>
Receive a message from the given destination. |
|
abstract fun <T : Any> receiveAndConvert(destinationName: String, targetClass: Class<T>): T
Receive a message from the given destination and convert its payload to the specified target class. |
|
abstract fun send(destinationName: String, message: Message<*>): Unit
Send a message to the given destination. |
|
abstract fun sendAndReceive(destinationName: String, requestMessage: Message<*>): Message<*>
Send a request message and receive the reply from the given destination. |
open class JmsMessagingTemplate : AbstractMessagingTemplate<Destination>, JmsMessageOperations, InitializingBean
An implementation of JmsMessageOperations. |