O'Reilly logo

Liferay 6.x Portal Enterprise Intranets Cookbook by Katarzyna Ziółkowska, Piotr Filipowicz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Liferay Service Bus for communication between portlets

The message bus is a mechanism for sending messages to different components in Liferay. This approach is very common, because it prevents class-loading issues. It is very important, because Liferay is a portlet container, and each portlet doesn't have information about the others. For that reason, Liferay provides a message bus that allows communication between portlets. An application that sends an event/message is called a producer, and an application that receives messages is called a consumer.

The message bus architecture supports asynchronous and synchronous messaging. Synchronous messages wait for a response, and asynchronous messages send a message, forget it, or receive a callback. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required