简体   繁体   English

如何使用JMS将响应xml放置在活动MQ响应队列中

[英]How to place a response xml in active MQ response queue using JMS

I have a telecom system which interacts with various third party applications to fetch information like address,payment history etc...Third party systems send response as xmls and that will be generated in one of the queues in Apache Active MQ. 我有一个电信系统,可与各种第三方应用程序交互以获取诸如地址,付款历史记录等信息。第三方系统将响应作为xml发送,并将在Apache Active MQ的队列之一中生成。 Since we are in development phase we do not have the connectivity established to external interfaces. 由于我们处于开发阶段,因此我们没有与外部接口建立连接。 In order to test the application,we simulate the response from third party systems by placing xmls files in respective queues using 'Send to' option in the MQ console before starting the testing 为了测试应用程序,我们通过在开始测试之前使用MQ控制台中的“发送到”选项将xmls文件放置在相应的队列中来模拟来自第三方系统的响应

Now i am looking to automate the way we place xmls in active MQ using java jms.Can some one provide me a sample code to start off with? 现在我正在寻找使用java jms自动化将XML放置在活动MQ中的方式。有人可以为我提供示例代码吗?

Take a look at How should I implement request response with JMS? 看一看如何使用JMS实现请求响应? for a description on how to do this. 有关如何执行此操作的说明。 It contains a full example. 它包含一个完整的示例。

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

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