Class JmsAuditMessageQueue
java.lang.Object
org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
org.openehealth.ipf.commons.audit.queue.JmsAuditMessageQueue
- All Implemented Interfaces:
AuditMessageQueue
Message Queue that sends audit messages into a JMS queue. It is strongly recommended
that the connection factory implements a pool or caches connections for performance reasons.
Use an instance of
JmsAuditMessageListener
to asynchronously receive the audit
messages and send them to a repository.
This is primarily meant to send audit messages to a JMS-based relay that eventually sends the audit record to an audit repository. Therefore, RFC 5425 metadata is placed in X-IPF-ATNA-* JMS properties, so the listener is able to restore them.
- Since:
- 3.5
- Author:
- Dmytro Rud, Christian Ohr
- See Also:
-
Field Summary
Fields inherited from interface org.openehealth.ipf.commons.audit.queue.AuditMessageQueue
X_IPF_ATNA_APPLICATION, X_IPF_ATNA_HOSTNAME, X_IPF_ATNA_PROCESSID, X_IPF_ATNA_TIMESTAMP
-
Constructor Summary
ConstructorDescriptionJmsAuditMessageQueue
(javax.jms.ConnectionFactory connectionFactory, String queueName, String userName, String password) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handle
(AuditContext auditContext, String auditMessage) Methods inherited from class org.openehealth.ipf.commons.audit.queue.AbstractAuditMessageQueue
audit, setPretty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.queue.AuditMessageQueue
flush, shutdown
-
Constructor Details
-
JmsAuditMessageQueue
public JmsAuditMessageQueue(javax.jms.ConnectionFactory connectionFactory, String queueName, String userName, String password) - Parameters:
connectionFactory
- JMS connection factoryqueueName
- JMS destination of ATNA messagesuserName
- user name for JMS authenticationpassword
- user password for JMS authentication
-
-
Method Details
-
handle
- Specified by:
handle
in classAbstractAuditMessageQueue
-