How to configure and use Asynchronous Bus in Liferay 7 plugin ?How to configure and use Asynchronous Bus in Liferay 7 plugin ?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=945186202024-03-29T00:36:58Z2024-03-29T00:36:58ZRE: How to configure and use Asynchronous Bus in Liferay 7 plugin ?Christoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191471652020-05-13T11:08:39Z2020-05-13T11:08:39ZI hope, this helps:<br /><a href="https://liferay.dev/forums/-/message_boards/message/96557070">https://liferay.dev/forums/-/message_boards/message/96557070</a>Christoph Rabel2020-05-13T11:08:39ZRE: How to configure and use Asynchronous Bus in Liferay 7 plugin ?ronak vorahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1191487242020-05-13T09:28:52Z2020-05-13T09:28:52ZSame here i'm creating message bus for<strong> Liferay 7.1.2 CE</strong>, if anyone can help....?<br /> Thanks in advanceronak vora2020-05-13T09:28:52ZRE: How to configure and use Asynchronous Bus in Liferay 7 plugin ?Manish Kumar Jaiswalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1025395692018-01-10T14:25:04Z2018-01-10T14:25:04ZHi Pulkit Did you find a solution for this issue , can you please share some code snippet about how to achieve this is Liferay DXP .<br /><br />Thanks<br />ManishManish Kumar Jaiswal2018-01-10T14:25:04ZHow to configure and use Asynchronous Bus in Liferay 7 plugin ?pulkit tiwarihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=945186192017-09-05T10:27:17Z2017-09-05T10:27:17ZHi guys,<br />I am converting a liferay 6.2 plugin project to liferay 7 plugin project. In this project we have used Asynchronous Bus , which is configured in messaging-sping.xml . Now in my liferay 7 plugin project, whenever i am trying push Message into MessageBusUtil, it is throwing a NullPointer Exception.<br />StackTrace:-<br />java.lang.NullPointerException<br />at com.liferay.portal.kernel.messaging.BaseAsynchronousDestination.send(BaseDestination.java:173)<br />at com.liferay.portal.messaging.internal,DefaultMessageBus.sendMessage(DefaultMessageBus.java:232)<br />at com.liferay.portal.kernel.messaging.MessageBusUtil.sendMessage(MessageBusUtil.java:92)<br />at DemoLR7.DemoLR7PortletViewController.question(DemoLR7PortletViewController.java:66)<br /><br />Code:-<br />Message message=new Message();<br />message.put("test","Checking Async Message Service");<br />MessageBusUtil.sendMessage("liferay/asyncbus/destination",message);<br /><br />messaging-spring.xml:-<br />(Main Part)<br /><br /><bean id="liferay.async.bus" class="com.healthplan.pe.events.handlers.AsyncMessageListenerImpl"/><br /><br /><bean id="liferay.async.bus.destination" class="com.liferay.portal.kernel.messaging.SerialDestination" ><br /><property name="name" value="liferay/asyncbus/destination" /><br /></bean><br /><br /><bean id="messagingConfigurator" class="com.liferay.portal.kernel.messaging.config.PluginMessagingConfigurator" ><br /><property name="messagingListeners"><br /><map key-type="java.lang.String" value-type="java.util.List"><br /><entry key="liferay/asyncbus/destination"><br /><list value-type="com.liferay.portal.kernel.messaging.MessageListener"><br /><ref bean="liferay.async.bus" /><br /></list><br /></entry><br /></map><br /></property><br /><property name="destinations"><br /><list><br /><ref bean="liferay.async.bus.destination" /><br /></list><br /></property><br /></bean><br /><br />AsyncMessagingListenerImpl.java code:-<br />public class AsyncMessagingListenerImpl implements MessageListener{<br />@Override<br />public void receive(Message message) throws MessageListenerException{<br />System.out.println("Received Message::-"+message.getString("test") );<br />}<br />}<br /><br />Web.xml:-<br /><context-param><br /><param-name>portalContextConfigLocation</param-name><br /><param-value>/WEB-INF/spring-context/messag