List of usage examples for com.liferay.portal.kernel.messaging Destination open
public void open();
From source file:org.vaadin.tori.util.LiferayToriActivityMessaging.java
License:Apache License
@Override public void register() { if (!MessageBusUtil.getMessageBus().hasDestination(TORI_DESTINATION)) { log.info("Adding a message bus destination: " + TORI_DESTINATION); @SuppressWarnings("deprecation") Destination destination = new ParallelDestination(TORI_DESTINATION); destination.open(); MessageBusUtil.addDestination(destination); }//from w w w . j a va 2 s . c o m MessageBusUtil.registerMessageListener(TORI_DESTINATION, this); }