|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProducerCallback
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 QueueSender
or
TopicPublisher
, to actually send a message.
JmsTemplate.execute(ProducerCallback)
Method Summary | |
---|---|
Object |
doInJms(Session session,
MessageProducer producer)
Perform operations on the given Session and MessageProducer . |
Method Detail |
---|
Object doInJms(Session session, MessageProducer producer) throws JMSException
Session
and MessageProducer
.
The message producer is not associated with any destination.
session
- the JMS Session
object to useproducer
- the JMS MessageProducer
object to use
Session
, if any (can be null
)
JMSException
- if thrown by JMS API methods
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |