接口 ProducerCallback<T>

    • 方法详细资料

      • doInJms

        T doInJms​(Session session,
                  MessageProducer producer)
           throws JMSException
        Perform operations on the given Session and MessageProducer.

        The message producer is not associated with any destination unless when specified in the JmsTemplate call.

        参数:
        session - the JMS Session object to use
        producer - the JMS MessageProducer object to use
        返回:
        a result object from working with the Session, if any (or null if none)
        抛出:
        JMSException - if thrown by JMS API methods