Java和MSMQ [英] Java and MSMQ

查看:633
本文介绍了Java和MSMQ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇是否有人对提供MSMQ访问权限的Java库有任何建议?我已经下载了J-Integra Java-COM库的试用版,并构建并运行了他们的MSMQ示例应用程序,但我很好奇是否有任何好的(免费:))替代品。我遇到了一些JNI实现,比如jMSMQ和其他几个,但是如果可能的话,我宁愿避免使用JNI。

I was curious if anyone had any suggestions on a Java library that provides access to MSMQ? I've downloaded the trial of the J-Integra Java-COM library and have built and run their MSMQ example app, but I was curious if there were any good (free :)) alternatives. I've run across a few JNI implementations like jMSMQ and a few others, but I'd rather avoid JNI if possible.

我们还调查了一些.NET< - > JMS互操作解决方案,如JNBridge(使用ActiveMQ)。我认为我们公司决定将我们的排队集中在MSMQ中,这将是我们理想的解决方案。

We've also investigated some .NET<->JMS interop solutions like JNBridge (with ActiveMQ). I think our company has decided to centralize our queueing in MSMQ however, so that would be our ideal solution.

我们希望在上面使用WCF(netMsmq或msmqIntegration) .NET方面。我有点担心java方面将如何处理WCF消息(二进制编码),但那里应该有选项(带文本编码和MSMQ传输的customBinding?),所以我不太担心。主要担心在Java中访问MSMQ。

We are hoping to use WCF (netMsmq or msmqIntegration) on the .NET side. I'm a little concerned about how the java side will deal with the WCF messages (binary encoding), but there should be options there (customBinding with text encoding and MSMQ transport?), so I'm not too worried about that. Mostly worried about getting access to MSMQ in Java.

我们的另一个选择是在每个队列的输入端放置一个瘦Web服务层,并实现互操作办法。但是,性能有点令人担忧。

Our other option is to just put a thin web-service layer at the input end of each queue, and achieve interop that way. Performance is a little bit of a concern there, however.

有什么建议吗?非常感谢任何人的时间。

Any suggestions? Thanks a lot for anyone's time.

推荐答案

据我所知,J-Integra是MSMQ唯一的纯Java实现,即如果您没有在Windows上运行,这是唯一的选择。 (如果还有其他选择,请告诉我们!)

As far as I understand J-Integra is the only pure Java implementation of MSMQ, ie this is the only alternative if you are not running on Windows. (Please let me know if there are other alternatives!)

Apache Camel和其他人使用JNI来访问Windows API(DLL文件)这显然意味着只能运行Windows。

Apache Camel and other uses JNI to access the Windows API (DLL files) which obviously means that is only works on Windows.

我目前正在尝试此处提供的代码 http ://www.codeplex.com/MsmqJava 这看起来很简单,但我不确定交易是如何运作的。

I am currently trying out the code provided here http://www.codeplex.com/MsmqJava which seems simple to use, but I'm not really sure how transactions work.

这篇关于Java和MSMQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆