Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Charanjeet singh Hora
Message Bus usage in clustered environment
March 5, 2009 7:48 PM
Answer

Charanjeet singh Hora

Rank: New Member

Posts: 24

Join Date: January 20, 2009

Recent Posts

Hi All,

I read about Message Bus capabilities of liferay on Wiki http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Message+Bus.

It says that
The current implementation doesn't allow to send remote messages.


My question is can we use message bus in clustered environment and if yes then how we can use it?

Please reply me asap.

Thanks
Sneha Shah
RE: Message Bus usage in clustered environment
October 2, 2012 12:16 PM
Answer

Sneha Shah

Rank: New Member

Posts: 4

Join Date: October 2, 2012

Recent Posts

Please let me know if there is update on this. Can we use message bus in a clustered environment in liferay 6.0?
David H Nebinger
RE: Message Bus usage in clustered environment
October 2, 2012 1:34 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11511

Join Date: September 1, 2006

Recent Posts

Not that I know of.

However it would be an easy matter of using JMS to join your clustered environments:

  • Set up ActiveMQ on all instances.
  • Add a message bus listener to get messages from the LMB and publish via JMS.
  • Create a JMS listener to receive these messages and publish back to the LMB.
Amos Fong
RE: Message Bus usage in clustered environment
October 2, 2012 8:03 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1898

Join Date: October 7, 2008

Recent Posts

It should be possible. LiveUsers uses the message bus to send message to all the nodes. See messaging-misc-spring.xml to see how it's wired up.

I think what you do is register a ClusterBridgeMessageListener along with your own MessageListener to a destination and the ClusterBridge will broadcast the message to all the other nodes.