Example usage for com.liferay.portal.kernel.messaging SerialDestination afterPropertiesSet

List of usage examples for com.liferay.portal.kernel.messaging SerialDestination afterPropertiesSet

Introduction

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

Prototype

@Override
    public void afterPropertiesSet() 

Source Link

Usage

From source file:com.liferay.sync.servlet.SyncServletContextListener.java

License:Open Source License

protected void registerMessageListener(MessageListener messageListener, String destinationName) {

    SerialDestination serialDestination = new SerialDestination();

    serialDestination.setName(destinationName);

    serialDestination.afterPropertiesSet();

    MessageBusUtil.addDestination(serialDestination);

    MessageBusUtil.registerMessageListener(destinationName, messageListener);
}