Example usage for com.liferay.portal.kernel.messaging Destination open

List of usage examples for com.liferay.portal.kernel.messaging Destination open

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.messaging Destination open.

Prototype

public void open();

Source Link

Usage

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);
}