简体   繁体   English

JMS Wildfly实施

[英]JMS Wildfly implementation

I'm writing an application that runs as a daemon and makes restful request periodically, I'm trying to implement a system where I have another application (preprocessor) that will be sent the JSON responses from the daemon. 我正在编写一个作为守护程序运行的应用程序,并定期发出restful请求,我正在尝试实现一个系统,在该系统中我有另一个应用程序(预处理器),该应用程序将从守护程序发送JSON响应。

My plan is to use JMS for this, my understanding is that I can send the restful responses I receive in my daemon.jar to a Queue using a JMS provider, I've been looking into using JBoss. 我的计划是为此使用JMS ,我的理解是,我一直在考虑使用JBoss,可以使用JMS提供程序将在daemon.jar收到的restful响应发送到Queue

So my understanding now is that I need to run a JBoss 7 Application server, or a Wildfly AS , I plan to run this server on a raspberry pi 2 for testing purposes, Have I got this right? 因此,我现在的理解是,我需要运行JBoss 7应用程序服务器或Wildfly AS ,我打算在树莓派2上运行该服务器以进行测试,我理解正确吗?

Regarding the client and receiver, Do they both need to be running on the server? 关于客户端和接收器,它们是否都需要在服务器上运行? I'm confused by this, can I have the Wildfly AS running on the pi, have the sender running on another machine and the receiver running on a 3rd machine? 我对此感到困惑,可以在pi上运行Wildfly AS ,在另一台计算机上运行sender ,在第三台计算机上运行receiver吗?

Do my sender and receiver need anything specific on them to communicate with the AS other than maybe some libs for Wildfly ?, I've seen Hornetq mentioned a few times, but am unsure how this fits into the process. 我的senderreceiver除了与Wildfly某些库有关Wildfly ,是否需要与AS进行通信的特定Wildfly ?我已经看过Hornetq数次了,但是不确定如何将其放入流程中。

Finally got this working, I couldn't find a start to finish example of setting this all up, but managed to piece it all together from different examples. 终于成功了,我找不到一个完整的例子来进行设置,而是设法从不同的例子中将它们拼凑起来。

the Sender( Producer ) and Receiver( Consumer ) don't need to be running on the server, I have all 3 running on different machines, they have to know the address of the Wildfly AS and the name of the queue( HornetQ ) they are connecting to. Sender( Producer )和Receiver( Consumer )不需要在服务器上运行,我所有的3个都在不同的机器上运行,他们必须知道Wildfly AS的地址和队列的名称( HornetQ )正在连接。

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

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