Class JmsAuditMessageListener

java.lang.Object
org.openehealth.ipf.commons.audit.queue.JmsAuditMessageListener
All Implemented Interfaces:
javax.jms.MessageListener

public class JmsAuditMessageListener extends Object implements javax.jms.MessageListener
JMS Message Listener that receives audit messages from a queue and sends them to an audit repository. It is recommended to use infrastructure classes such as Spring's JMS MessageListenerContainers to control transactional behavior, message redelivery and other features.

This class supports JMS headers transferred by JmsAuditMessageQueue and reuses them for setting the RFC 5424 headers of the actual syslog audit.

Since:
3.5
Author:
Christian Ohr
  • Constructor Details

    • JmsAuditMessageListener

      public JmsAuditMessageListener(AuditContext auditContext)
  • Method Details

    • onMessage

      public void onMessage(javax.jms.Message message)
      Specified by:
      onMessage in interface javax.jms.MessageListener