/// <summary> Send a message to a EMS destination. The callback gives access to /// the EMS session and MessageProducer in order to do more complex /// send operations. /// </summary> /// <param name="action">callback object that exposes the session/producer pair /// </param> /// <returns> the result object from working with the session /// </returns> /// <exception cref="EMSException">If there is any problem accessing the EMS API</exception> public object Execute(IProducerCallback action) { return Execute(new ProducerCreatorCallback(this, action)); }
public ProducerCreatorCallback(EmsTemplate jmsTemplate, IProducerCallback producerCallback) { this.jmsTemplate = jmsTemplate; this.producerCallback = producerCallback; }