1 package se.citerus.dddsample.infrastructure.messaging.jms;
2
3 import org.apache.commons.logging.Log;
4 import org.apache.commons.logging.LogFactory;
5
6 import javax.jms.Message;
7 import javax.jms.MessageListener;
8
9 public class SimpleLoggingConsumer implements MessageListener {
10
11 private final Log logger = LogFactory.getLog(SimpleLoggingConsumer.class);
12
13 @Override
14 public void onMessage(Message message) {
15 logger.debug("Received JMS message: " + message);
16 }
17
18 }