简体   繁体   English

使用 C# 向 JMS 发送 XML 消息

[英]Sending a XML message to JMS using C#

I would like to send a xml file to a jms queue.我想将 xml 文件发送到 jms 队列。 How would i achieve this?我将如何实现这一目标? Do i create a ITextMessage/IObjectMessage etc...我是否创建一个 ITextMessage/IObjectMessage 等...

Will someone please guide me有人请指导我吗

You need to get the c# client library for your chosen JMS broker (if there is one) That should have examples on how to do it.您需要为您选择的 JMS 代理(如果有)获取 c# 客户端库,这应该有如何做到这一点的示例。

Spring.net also has support for some JMS brokers through its NMS module. Spring.net 还通过其 NMS 模块支持一些 JMS 代理。 See here这里

The best way to send xml is via the text message.发送 xml 的最佳方式是通过文本消息。

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

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