spring-framework / org.springframework.jms.core / JmsMessageOperations / sendAndReceive

sendAndReceive

@Nullable abstract fun sendAndReceive(destinationName: String, requestMessage: Message<*>): Message<*>

Send a request message and receive the reply from the given destination.

Parameters

destinationName - the name of the target destination

requestMessage - the message to send

Return
the reply, possibly null if the message could not be received, for example due to a timeout