Saturday, July 31, 2021

Liferay Message Bus Implementation

Follow below Article to understand more about Message Bus in Liferay.




Implementation Steps

  • Create Destination Configuration
  • Create Destination
  • Register Destination as OSGi Service
  • Manage the Destination Object
  • Register Listener
  • Send Message to Destination



GitHub Project



Module Implementation


Module demonstrates to create different types of message bus destinations and different ways to register listeners with message bus.

Module have simple UI screens to send messages on Message Bus and view the statistics of each message bus destination.


Software Stack



Liferay Developer Studio-3.9.3-ga4





Ready with Portal Server and Liferay Workspace.

Deploy and Run


Import Liferay Module in your Liferay Workspace. Run build and deploy gradle tasks



Deploy module jar file in your OSGi deployment directory by running gradle deploy task or also copy manually to “osgi\modules” directory






Access Liferay Portal from Browser





Login as Liferay Admin


Create Page in Liferay and Add Widget (LiferayMessageBus) to the page






Access “Send Message” screen.


Send Message with below UI screen. Message will be sent to Message Bus on specified destination.



Once message sent on message bus then listeners will be receiving the messages.

We can see the logs of listeners on console logs which prints the message object. We will implemented listeners based on real time requirements.





Access Destination Statistics UI screen.


Select Destination from dropdown, it will show the statistics of destination.






  1. 스포츠토토 It¦s really a nice and useful piece of information. I¦m glad that you just shared this helpful information with us. Please keep us informed like this. Thank you for sharing.

  2. 토토 I cannot thank you enough for the blog post.Really looking forward to read more. Awesome.

  3. I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success .. 바카라사이트

  4. 온라인카지노 Thanks so very much for taking your time to create this very useful and informative site. I have learned a lot from your site.


Recent Posts

Recent Posts Widget

Popular Posts