开发者

Implementing Hornetq

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 an开发者_JAVA技巧d 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


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.


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜