To be used with JmsTemplate's callback methods that take a
ProducerCallback argument, often implemented as an anonymous
inner class or as a lambda expression.
The typical implementation will perform multiple operations on the
supplied JMS Session and MessageProducer.
JmsTemplate#execute(ProducerCallback), JmsTemplate#execute(jakarta.jms.Destination, ProducerCallback) , JmsTemplate#execute(String, ProducerCallback)
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: a result object from working with theSession, if any
(or null if none)the JMS session, MessageProducer Session object to usethe JMS producer)MessageProducer object to usePerform operations on the given |
| doInJms | back to summary |
|---|---|
| public T doInJms(Session session, MessageProducer producer) throws JMSException Perform operations on the given The message producer is not associated with any destination unless when specified in the JmsTemplate call.
| |