예제 #1
0
 public MessageProducer(Apache.NMS.XMS.Session session,
                        IBM.XMS.IMessageProducer producer)
 {
     this.nmsSession         = session;
     this.xmsMessageProducer = producer;
     this.RequestTimeout     = session.RequestTimeout;
 }
예제 #2
0
 public MessageConsumer(Apache.NMS.XMS.Session session,
                        IBM.XMS.IMessageConsumer consumer)
 {
     this.nmsSession         = session;
     this.xmsMessageConsumer = consumer;
     this.xmsMessageConsumer.MessageListener = this.HandleXmsMessage;
 }
예제 #3
0
 /// <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);
 }