Example usage for com.liferay.portal.kernel.messaging Message setResponseDestinationName

List of usage examples for com.liferay.portal.kernel.messaging Message setResponseDestinationName

Introduction

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

Prototype

public void setResponseDestinationName(String responseDestinationName) 

Source Link

Usage

From source file:com.liferay.osb.scv.user.mapper.internal.event.BaseEvent.java

License:Open Source License

@Override
public void run(Map<String, Object> parameters) {
    String responseId = generateUUID();

    EventManager.addEvent(responseId, this);

    Message message = new Message();

    message.setResponseId(responseId);//  www  . ja va  2  s . c o  m
    message.setValues(parameters);

    message.setResponseDestinationName(UserMapperDestinationNames.SCV_USER_MAPPER);

    MessageBusUtil.sendMessage(UserMapperDestinationNames.SCV_SOURCE, message);
}