Example usage for Java org.springframework.jms.core JmsTemplate fields, constructors, methods, implement or subclass
The text is from its open source code.
JmsTemplate(ConnectionFactory connectionFactory) Create a new JmsTemplate, given a ConnectionFactory. | |
JmsTemplate() Create a new JmsTemplate for bean-style usage. |
void | afterPropertiesSet() |
T | browse(BrowserCallback |
void | convertAndSend(Destination destination, final Object message) |
void | convertAndSend(String destinationName, final Object message) |
void | convertAndSend(Object message, MessagePostProcessor postProcessor) |
void | convertAndSend(Object message) |
T | execute(SessionCallback |
T | execute(ProducerCallback |
ConnectionFactory | getConnectionFactory() Return the ConnectionFactory that this accessor uses for obtaining JMS Connection Connections . |
Destination | getDefaultDestination() Return the destination to be used on send/receive operations that do not have a destination parameter. |
String | getDefaultDestinationName() Return the destination name to be used on send/receive operations that do not have a destination parameter. |
long | getReceiveTimeout() Return the timeout to use for receive calls (in milliseconds). |
Message | receive(Destination destination) |
Message | receive(String destinationName) |
Object | receiveAndConvert() |
Object | receiveAndConvert(Destination destination) |
Object | receiveAndConvert(String destinationName) |
Object | receiveSelectedAndConvert(String messageSelector) |
void | send(MessageCreator messageCreator) |
void | send(final Destination destination, final MessageCreator messageCreator) |
void | send(final String destinationName, final MessageCreator messageCreator) |
void | setConnectionFactory(@Nullable ConnectionFactory connectionFactory) Set the ConnectionFactory to use for obtaining JMS Connection Connections . |
void | setDefaultDestination(@Nullable Destination destination) Set the destination to be used on send/receive operations that do not have a destination parameter. |
void | setDefaultDestinationName(@Nullable String destinationName) Set the destination name to be used on send/receive operations that do not have a destination parameter. |
void | setDeliveryMode(int deliveryMode) Set the delivery mode to use when sending a message. |
void | setDeliveryPersistent(boolean deliveryPersistent) Set whether message delivery should be persistent or non-persistent, specified as boolean value ("true" or "false"). |
void | setDestinationResolver(DestinationResolver destinationResolver) Set the DestinationResolver that is to be used to resolve javax.jms.Destination references for this accessor. |
void | setExplicitQosEnabled(boolean explicitQosEnabled) Set if the QOS values (deliveryMode, priority, timeToLive) should be used for sending a message. |
void | setMessageConverter(@Nullable MessageConverter messageConverter) Set the message converter for this template. |
void | setMessageIdEnabled(boolean messageIdEnabled) Set whether message IDs are enabled. |
void | setMessageTimestampEnabled(boolean messageTimestampEnabled) Set whether message timestamps are enabled. |
void | setPriority(int priority) Set the priority of a message when sending. |
void | setPubSubDomain(boolean pubSubDomain) Configure the destination accessor with knowledge of the JMS domain used. |
void | setPubSubNoLocal(boolean pubSubNoLocal) Set whether to inhibit the delivery of messages published by its own connection. |
void | setReceiveTimeout(long receiveTimeout) Set the timeout to use for receive calls (in milliseconds). |
void | setSessionAcknowledgeMode(int sessionAcknowledgeMode) Set the JMS acknowledgement mode that is used when creating a JMS Session to send a message. |
void | setSessionAcknowledgeModeName(String constantName) Set the JMS acknowledgement mode by the name of the corresponding constant in the JMS Session interface, e.g. |
void | setSessionTransacted(boolean sessionTransacted) Set the transaction mode that is used when creating a JMS Session . |
void | setTimeToLive(long timeToLive) Set the time-to-live of the message when sending. |