MSMQ 读取消息,以及用于构建正确 .NET Framework 数据类型的数据。 MessageQueue q = new MessageQueue(_queueName); q.Formatter = new XmlMessageFormatter( new Type[] {typeof(String)} ); Message order = q.Receive(0); string xml = (string) order.Body(); StringReader sr = new StringReader(xml); OrderData ds = new OrderData(); // Load result string back into an OrderData-typed DataSet ds.ReadXml(sr); 注 前面的示例使用来自 XBikes 的 OrderData 自定义数据类型。然而,XBikes 应用程序不实现该代码。 创建 J2EE 消息使用者 J2EE 消息使用者从 WebSphere MQ 读取消
数据载入中...
页码:[1] [2] [3] [4] [5] [6] [7] 第7页、共7页 |