Example usage for com.liferay.portal.kernel.messaging DestinationNames IP_GEOCODER_RESPONSE

List of usage examples for com.liferay.portal.kernel.messaging DestinationNames IP_GEOCODER_RESPONSE

Introduction

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

Prototype

String IP_GEOCODER_RESPONSE

To view the source code for com.liferay.portal.kernel.messaging DestinationNames IP_GEOCODER_RESPONSE.

Click Source Link

Usage

From source file:com.liferay.ipgeocoder.servlet.IPGeocoderServletContextListener.java

License:Open Source License

@Override
protected void doPortalDestroy() {
    _ipGeocoderDestination.unregister(_ipGeocoderMessageListener);

    MessageBusUtil.removeDestination(_ipGeocoderDestination.getName());

    MessageBusUtil.removeDestination(DestinationNames.IP_GEOCODER_RESPONSE);
}

From source file:com.liferay.ipgeocoder.servlet.IPGeocoderServletContextListener.java

License:Open Source License

@Override
protected void doPortalInit() {
    _ipGeocoderDestination = new ParallelDestination(DestinationNames.IP_GEOCODER);

    MessageBusUtil.addDestination(_ipGeocoderDestination);

    _ipGeocoderMessageListener = new IPGeocoderMessageListener();

    _ipGeocoderDestination.register(_ipGeocoderMessageListener);

    Destination ipGeocoderResponseDestination = new ParallelDestination(DestinationNames.IP_GEOCODER_RESPONSE);

    MessageBusUtil.addDestination(ipGeocoderResponseDestination);
}