public MessageProducer(Apache.NMS.XMS.Session session, IBM.XMS.IMessageProducer producer) { this.nmsSession = session; this.xmsMessageProducer = producer; this.RequestTimeout = session.RequestTimeout; }
public MessageConsumer(Apache.NMS.XMS.Session session, IBM.XMS.IMessageConsumer consumer) { this.nmsSession = session; this.xmsMessageConsumer = consumer; this.xmsMessageConsumer.MessageListener = this.HandleXmsMessage; }
/// <summary> /// Converts an IBM XMS message consumer interface /// into an NMS message consumer interface. /// </summary> /// <param name="session">NMS session.</param> /// <param name="xmsMessageConsumer">XMS message consumer.</param> /// <returns>Apache NMS message consumer interface.</returns> public static Apache.NMS.IMessageConsumer ToNMSMessageConsumer( Apache.NMS.XMS.Session session, IBM.XMS.IMessageConsumer xmsMessageConsumer) { return(xmsMessageConsumer != null ? new Apache.NMS.XMS.MessageConsumer(session, xmsMessageConsumer) : null); }