diff --git a/spring-jms/src/main/java/org/springframework/jms/core/JmsOperations.java b/spring-jms/src/main/java/org/springframework/jms/core/JmsOperations.java index 5e9af5e83ae..c8deb94cb6e 100644 --- a/spring-jms/src/main/java/org/springframework/jms/core/JmsOperations.java +++ b/spring-jms/src/main/java/org/springframework/jms/core/JmsOperations.java @@ -26,15 +26,15 @@ import org.springframework.lang.Nullable; /** * Specifies a basic set of JMS operations. * - *
Implemented by {@link JmsTemplate}. Not often used but a useful option - * to enhance testability, as it can easily be mocked or stubbed. + *
Implemented by {@link JmsTemplate}. Not often used directly, but a useful + * option to enhance testability, as it can easily be mocked or stubbed. * *
Provides {@code JmsTemplate's} {@code send(..)} and * {@code receive(..)} methods that mirror various JMS API methods. * See the JMS specification and javadocs for details on those methods. * - *
Provides also basic request reply operation using a temporary - * queue to collect the reply. + *
Provides also basic request-reply operations using a temporary queue to
+ * receive the reply.
*
* @author Mark Pollack
* @author Juergen Hoeller
@@ -59,7 +59,7 @@ public interface JmsOperations {
/**
* Send messages to the default JMS destination (or one specified
- * for each send operation). The callback gives access to the JMS Session
+ * for each send operation). The callback provides access to the JMS Session
* and MessageProducer in order to perform complex send operations.
* @param action callback object that exposes the session/producer pair
* @return the result object from working with the session
@@ -69,7 +69,7 @@ public interface JmsOperations {
This will only work with a default destination specified!
* @param messageCreator callback to create a request message
@@ -390,10 +390,10 @@ public interface JmsOperations {
Message sendAndReceive(MessageCreator messageCreator) throws JmsException;
/**
- * Send a message and receive the reply from the specified destination. The
- * {@link MessageCreator} callback creates the message given a Session. A temporary
- * queue is created as part of this operation and is set in the {@code JMSReplyTO}
- * header of the message.
+ * Send a message and receive the reply from the specified destination.
+ * The {@link MessageCreator} callback creates the message given a Session.
+ * A temporary queue is created as part of this operation and is set in the
+ * {@code JMSReplyTo} header of the message.
* @param destination the destination to send this message to
* @param messageCreator callback to create a message
* @return the reply, possibly {@code null} if the message could not be received,
@@ -405,10 +405,10 @@ public interface JmsOperations {
Message sendAndReceive(Destination destination, MessageCreator messageCreator) throws JmsException;
/**
- * Send a message and receive the reply from the specified destination. The
- * {@link MessageCreator} callback creates the message given a Session. A temporary
- * queue is created as part of this operation and is set in the {@code JMSReplyTO}
- * header of the message.
+ * Send a message and receive the reply from the specified destination.
+ * The {@link MessageCreator} callback creates the message given a Session.
+ * A temporary queue is created as part of this operation and is set in the
+ * {@code JMSReplyTo} header of the message.
* @param destinationName the name of the destination to send this message to
* (to be resolved to an actual destination by a DestinationResolver)
* @param messageCreator callback to create a message
@@ -426,7 +426,7 @@ public interface JmsOperations {
//---------------------------------------------------------------------------------------
/**
- * Browse messages in the default JMS queue. The callback gives access to the JMS
+ * Browse messages in the default JMS queue. The callback provides access to the JMS
* Session and QueueBrowser in order to browse the queue and react to the contents.
* @param action callback object that exposes the session/browser pair
* @return the result object from working with the session
@@ -436,7 +436,7 @@ public interface JmsOperations {