Last active
August 29, 2015 14:26
-
-
Save mroger/4118ead03dc5f2f0525b to your computer and use it in GitHub Desktop.
ActiveMQ listener
This file contains 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
@Component | |
public class SimpleListener { | |
private static final Logger LOGGER = LoggerFactory.getLogger(SimpleListener.class); | |
@JmsListener(destination = "queue.logback-queue") | |
public void receiveOrder(Message message) throws JMSException { | |
LoggingEventVO loggingEventVO = (LoggingEventVO) ((ActiveMQObjectMessage)message).getObject(); | |
LOGGER.info("Message '{}' received.", loggingEventVO.getMessage()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment