Spring.Messaging.Nms.Listener.Adapter.MessageListenerAdapter.SendResponse C# (CSharp) Méthode

SendResponse() protected méthode

Sends the given response message to the given destination.
protected SendResponse ( ISession session, IDestination destination, IMessage response ) : void
session ISession The session to operate on.
destination IDestination The destination to send to.
response IMessage The outgoing message about to be sent.
Résultat void
        protected virtual void SendResponse(ISession session, IDestination destination, IMessage response)
        {
            IMessageProducer producer = session.CreateProducer(destination);
            try
            {
                PostProcessProducer(producer, response);
                producer.Send(response);
            }
            finally
            {
                NmsUtils.CloseMessageProducer(producer);
            }
        }