Callback for sending a message to a JMS destination.
To be used with the
JmsTemplate.execute(ProducerCallback) method, often implemented as an anonymous inner class.
The typical implementation will perform multiple operations on the
supplied JMS
Session and
MessageProducer . When used with
a 1.0.2 provider, you need to downcast to the appropriate domain
implementation, either
javax.jms.QueueSender or
javax.jms.TopicPublisher , to actually send a message.
author: Mark Pollack since: 1.1 See Also: JmsTemplate.execute(ProducerCallback) |