/**
 * OpenCPS is the open source Core Public Services software
 * Copyright (C) 2016-present OpenCPS community
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>
 */

package org.opencps.backend.scheduler;

import java.util.Date;

import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException;


/**
 * @author khoavd
 *
 */
public class FiveMinutes implements MessageListener{

	/* (non-Javadoc)
     * @see com.liferay.portal.kernel.messaging.MessageListener#receive(com.liferay.portal.kernel.messaging.Message)
     */
    @Override
    public void receive(Message message)
        throws MessageListenerException {

	    System.out.println("---5 minute");
	    
	    System.out.print(message.get("msg1"));
	    System.out.print(message.get("msg2"));
	    System.out.print(message.get("MESSAGE_LISTENER_CLASS_NAME"));
    }

}

@@ -1334,209 +1334,8 @@
  %7B%0A%0A
-%09    System.out.println(%22---5 minute%22);%0A%09    %0A%09    System.out.print(message.get(%22msg1%22));%0A%09    System.out.print(message.get(%22msg2%22));%0A%09    System.out.print(message.get(%22MESSAGE_LISTENER_CLASS_NAME%22));%0A
     

Remove test message