|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProducerCallback
Callback interface for JMS code. To be used with JmsTemplate's execute method, often as an anonymous class within a method implementation.
The typical implementation will perform multiple operations on the 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 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 - the JMS session object to useproducer - the JMS MessageProducer object to use
JMSException - if thrown by JMS API methods
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||