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

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

Introduction

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

Prototype

@Override
    public String toString() 

Source Link

Usage

From source file:de.uhh.l2g.plugins.util.PortletScheduler.java

License:Open Source License

@Override
public void receive(Message message) throws MessageListenerException {
    String values = "No values";
    // Debug Information on running job
    if (message != null) {
        LOG.info("Message :" + message.toString());
        Thread thread = Thread.currentThread();
        LOG.info("Thread :" + thread.getContextClassLoader());
        LOG.info("Thread :" + thread.toString());
        Map<String, Object> map = message.getValues();
        LOG.info(message.get(SchedulerEngine.DESTINATION_NAME) + " " + message.getDestinationName() + " "
                + message.getValues().get(SchedulerEngine.DESTINATION_NAME) + " "
                + message.getDestinationName());
        values = map.toString();/*from  ww  w.  j  av a 2  s .c  o  m*/
    }
    LOG.info("Portlet Scheduler running... " + values);
}