|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
java.lang.Object |
doInJms(javax.jms.Session session,
javax.jms.MessageProducer producer)
Perform operations on the given Session and MessageProducer. |
Method Detail |
public java.lang.Object doInJms(javax.jms.Session session, javax.jms.MessageProducer producer) throws javax.jms.JMSException
session
- the JMS session object to useproducer
- the JMS MessageProducer object to use
javax.jms.JMSException
- if thrown by JMS API methods
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |