实施 Hornetq
我需要澄清在我们的系统中实现 JMS 的正确方法。
目前,我们有两台负载平衡的 JBoss 服务器用于最终用户交易目的,我们正在根据交易中的各种事件扩展通知功能。为了使其工作,我们决定使用以下方法,hornetQ将嵌入事务Jboss服务器中,MDB将附加在同一个JBoss服务器中以侦听并调用另一个JBoss服务器,该服务器将有一些业务代码来对要发送的用户进行分类,最后该服务器将使用适当的用户调用 XMPP 服务器。
我的疑问是,在事务 JBoss 服务器中部署 MDB(事件使用者)是一个好方法,或者将 MDB 移动到专用于通知目的的 JBoss 服务器。请提出一些更好的方法的想法。
问候, 瓦伊拉姆
I need some clarity on the right approach of implementing JMS in our system.
Currently we have two JBoss servers in load-balanced for end user transaction purpose, we are extending the notification features based on various event in the transaction. To make it work have decided to use following approach, hornetQ will be embedded in transaction Jboss servers and MDB will be attached in same JBoss server to listend and call another JBoss server which will have some business code to categorize the users to be sent and finally that server will make a call to XMPP server with appropriate users.
Here my doubt is, deploying MDB (event consumer) in transaction JBoss server is good approach or move the MDB to JBoss server dedicated for notification pupose. Please throw some idea for better approach.
Regards,
Vairam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如我之前所说,你的问题写得不好,但我真的很想帮助你......
所以,部署 MDB 来处理事务总是一个不错的选择,而不是像你要做 TX 那样直接使用数据库异步地。
当您将数据从一个 MDB 发送到另一台应用程序服务器时,您可以将这两个操作作为同一个 TX 的一部分,因此您可以使用 XA 来确保消息的处理以及随后完成的任何操作(另一条消息发送,另一条消息发送) EJB 调用或其他 DB 操作)将作为同一 TX 的一部分完成。
如果您需要更多帮助,请重新编辑您的问题,确保使用正确的术语。我不认为你有语言障碍..你只是使用了错误的术语..比如,你不能将HornetQ嵌入到事务中,那只是不存在的东西。
As I said earlier your question here is poorly written, but I'm really trying to help you...
so, it's always a good choice to deploy MDBs to process transactions instead of using a database directly as you are going to do the TX asynchronously.
When you send data from one MDB to another application server, you can have both operations as part of the same TX, hence you can make usage of XA to make sure the process of the Message and whatever is done afterwards (another message send, another EJB call or another DB operation) would be done as part of the same TX.
If you need more help, please re-edit your question making sure you are using the right terminology. I don't think you're having a language barrier.. you're just using wrong terms.. like, you can't embed HornetQ in a Transaction, that's just something that doesn't exist.
你的问题有点难以理解。如何在事务中部署 MDB?您在应用程序服务器上部署 MDB。
你的问题没有多大意义。也许这是语言障碍?
Your question is a bit confusing to be understood. How can you deploy a MDB in a transaction? You deploy a MDB on an application server.
Your question is not making much sense. Perhaps it's a language barrier?