MessageSendingOperations, MessageReceivingOperations
and MessageRequestReplyOperations for JMS related operations that allow to specify
a destination name rather than the actual jakarta.jms.Destination .
org.springframework.jms.core.JmsTemplate , org.springframework.messaging.core.MessageSendingOperations , org.springframework.messaging.core.MessageReceivingOperations , org.springframework.messaging.core.MessageRequestReplyOperations
| Modifier and Type | Method and Description |
|---|---|
| public void | convertAndSend(String
the name of the target destination destinationName, Object the Object to use as payload payload)Redeclares org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(String
the name of the target destination destinationName, Object the Object to use as payload payload, Map<String, Object> the headers for the message to send headers)Redeclares org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(String
the name of the target destination destinationName, Object the Object to use as payload payload, MessagePostProcessor the post processor to apply to the message postProcessor)Redeclares org. Convert the given Object to serialized form, possibly using a
|
| public void | convertAndSend(String
the name of the target destination destinationName, Object the Object to use as payload payload, Map<String, Object> the headers for the message to send headers, MessagePostProcessor the post processor to apply to the message postProcessor)Redeclares org. Convert the given Object to serialized form, possibly using a
|
| public <T> T | Returns: the payload of the reply message, possiblynull if the message
could not be received, for example due to a timeoutthe name of the target destination destinationName, Object payload for the request message to send request, Class<T> the target type to convert the payload of the reply to targetClass)Redeclares org. Convert the given request Object to serialized form, possibly using a
|
| public <T> T | Returns: the payload of the reply message, possiblynull if the message
could not be received, for example due to a timeoutthe name of the target destination destinationName, Object payload for the request message to send request, Map<String, Object> the headers for the request message to send headers, Class<T> the target type to convert the payload of the reply to targetClass)Redeclares org. Convert the given request Object to serialized form, possibly using a
|
| public <T> T | Returns: the payload of the reply message, possiblynull if the message
could not be received, for example due to a timeoutthe name of the target destination destinationName, Object payload for the request message to send request, Class<T> the target type to convert the payload of the reply to targetClass, MessagePostProcessor post process to apply to the request message requestPostProcessor)Redeclares org. Convert the given request Object to serialized form, possibly using a
|
| public <T> T | Returns: the payload of the reply message, possiblynull if the message
could not be received, for example due to a timeoutthe name of the target destination destinationName, Object payload for the request message to send request, Map<String, Object> headers, Class<T> the target type to convert the payload of the reply to targetClass, MessagePostProcessor post process to apply to the request message requestPostProcessor)Redeclares org. Convert the given request Object to serialized form, possibly using a
|
| public Message | Returns: the received message, possiblynull if the message could not
be received, for example due to a timeoutthe name of the target destination destinationName)Redeclares org. Receive a message from the given destination. |
| public <T> T | Returns: the converted payload of the reply message, possiblynull if
the message could not be received, for example due to a timeoutthe name of the target destination destinationName, Class<T> the target class to convert the payload to targetClass)Redeclares org. Receive a message from the given destination and convert its payload to the specified target class. |
| public void | send(String
the name of the target destination destinationName, Message<?> the message to send message)Redeclares org. Send a message to the given destination. |
| public Message | Returns: the reply, possiblynull if the message could not be received,
for example due to a timeoutthe name of the target destination destinationName, Message<?> the message to send requestMessage)Redeclares org. Send a request message and receive the reply from the given destination. |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(String destinationName, Object payload) throws MessagingException Redeclares org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(String destinationName, Object payload, Map<String, Object> headers) throws MessagingException Redeclares org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(String destinationName, Object payload, MessagePostProcessor postProcessor) throws MessagingException Redeclares org. Convert the given Object to serialized form, possibly using a
| |
| convertAndSend | back to summary |
|---|---|
| public void convertAndSend(String destinationName, Object payload, Map<String, Object> headers, MessagePostProcessor postProcessor) throws MessagingException Redeclares org. Convert the given Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Class<T> targetClass) throws MessagingException Redeclares org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Map<String, Object> headers, Class<T> targetClass) throws MessagingException Redeclares org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Class<T> targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException Redeclares org. Convert the given request Object to serialized form, possibly using a
| |
| convertSendAndReceive | back to summary |
|---|---|
| public <T> T convertSendAndReceive(String destinationName, Object request, Map<String, Object> headers, Class<T> targetClass, MessagePostProcessor requestPostProcessor) throws MessagingException Redeclares org. Convert the given request Object to serialized form, possibly using a
| |
| receive | back to summary |
|---|---|
| public Message Redeclares org. Receive a message from the given destination. | |
| receiveAndConvert | back to summary |
|---|---|
| public <T> T receiveAndConvert(String destinationName, Class<T> targetClass) throws MessagingException Redeclares org. Receive a message from the given destination and convert its payload to the specified target class. | |
| send | back to summary |
|---|---|
| public void send(String destinationName, Message<?> message) throws MessagingException Redeclares org. Send a message to the given destination. | |
| sendAndReceive | back to summary |
|---|---|
| public Message Redeclares org. Send a request message and receive the reply from the given destination. | |