简体   繁体   English

带有WCF的原始MQ消息

[英]Raw MQ messages with WCF

Is there a way, using MQ 7.5, to get MQ WCF to place "raw" messages into an MQ queue? 有没有办法使用MQ 7.5来获取MQ WCF将“原始”消息放入MQ队列? It seems to be limited to SOAP-JMS formats. 它似乎仅限于SOAP-JMS格式。

By raw, I mean non-SOAP, non-JMS, non-XML, just a simple message. 原始,我指的是非SOAP,非JMS,非XML,只是一个简单的消息。

MQ 8 provides this feature with WmqStringMessage as per here , but I'm wondering about a good way to get just a standard MQSTR-type message into an MQ queue. MQ 8提供了这个功能WmqStringMessage这里 ,但我想了解一下的好方法得到的只是一个标准的MQSTR类型消息到MQ队列。

Short of IBM back-porting changes from later versions of MQ to MQ7, there is no easy way to achieve this. 如果没有IBM从更高版本的MQ向MQ7反向移植更改,那么实现这一目标并不容易。

In the end, we ditched the use of WCF since most of the features we used are also implemented in MQ itself, such as durable transactions and guaranteed delivery. 最后,我们放弃了对WCF的使用,因为我们使用的大多数功能也在MQ本身中实现,例如持久事务和保证传递。

WCF is good if you want to be able to chop and change the underlying delivery mechanisms but, if all you're using is MQ, it's easier to just code directly to that API. 如果您希望能够切断和更改底层传递机制,WCF是很好的,但是,如果您使用的只是MQ,则直接对该API进行编码会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM