Created
May 4, 2017 15:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.opengarage.pingscape.mq.consumer; | |
import javax.jms.Message; | |
import javax.jms.MessageListener; | |
/** | |
* @author dhrubo | |
* | |
*/ | |
public class EventMessageConsumer implements MessageListener { | |
/* (non-Javadoc) | |
* @see javax.jms.MessageListener#onMessage(javax.jms.Message) | |
*/ | |
public void onMessage(Message message) { | |
System.out.println("Message Consumed -"+message); | |
//TODO : Take some action.... invoke service method | |
//NOTE : Service object is injected by Spring framework | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment