recoverable
Section: logger-settings
Default Value: false
Valid Values: true, false
Changes Take Effect: Immediately
If this option is set to true, the messages being sent will have a flag MQMSG_DELIVERY_RECOVERABLE, otherwise, the messages will have a flag MQMSG_DELIVERY_EXPRESS.
Using the JMS Event Logger with Apache ActiveMQ
Important
You must have Apache ActiveMQ 5.14.5 or higher.You can use the JMS Event Logger with Apache ActiveMQ to process reporting events using a JMS queue.
To enable the JMS Event Logger with Apache ActiveMQ, edit the option delivery-protocol and set the value to jms.
Configuring JMS Event Logger with Apache ActiveMQ
- Configure Apache ActiveMQ, as described on the Apache website.
- Create a jndi.properties file with the following content:
java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory java.naming.provider.url = tcp://activemq_host:61616 connectionFactoryNames = ConnectionFactory queue.InxEventLogQueue = InxEventLogQueue queue.inbound = inx.inbound queue.error = inx.error queue.processed = inx.processed queue.notification = inx.notification
ImportantThe value of queue.InxEventLogQueue refers to a queue name in your environment. - Pack the jndi.properties file in amq-jndi.jar.
- Add the following jars to the -Djava.class.path option in the jvm-options section:
- activemq-all-5.14.5.jar
- amq-jndi.jar
- Create the JMS Event Logger as a Database Access Point (DAP).
- Configure JMS Event Logger for connecting to Apache ActiveMQ by adding the following options in the logger-settings section:
- delivery-protocol=jms
- delivery-queue-name=InxEventLogQueue
- jms-connection-factory-lookup-name=ConnectionFactory
- jms-initial-context-factory=org.apache.activemq.jndi.ActiveMQInitialContextFactory
- jms-provider-url=tcp://activemq_host:61616
- reconnect-timeout=10
Important- Change the value of InxEventLogQueue to the queue value you set in the jndi.properties file.
- The value of jms-provider-url is the Apache ActiveMQ URL that corresponds to the <transportConnectorname> node from the activemq.xml file.
- Configure persistence of messages generated by JMS Event Logger by setting the option recoverable. If this option is set to true, the message producer delivery mode is set to DeliveryMode.PERSISTENT. Otherwise, if set to false, the delivery mode is set to DeliveryMode.NON_PERSISTENT.
ImportantIf the delivery mode is DeliveryMode.NON_PERSISTENT and the corresponding message queue is deleted on the fly, Interaction Server does not report any errors, even though the messages are not written anywhere.
- Optionally, you can repeat the steps in this section to set up multiple JMS Event Loggers. With each additional logger, you must increment the name of additional queues as queue.InxEventLogQueue2 = InxEventLogQueue2 in the jndi.properties file.
- Add created JMS Event Loggers to Interaction Server connections.
Using TLS with Apache ActiveMQ
- Prepare the TLS certificates, as described in the Genesys Security Deployment Guide.
- Copy cert.jks and truststore.jks into the following folder: <Apache ActiveMQ installation directory>/conf.
- Open the file activemq.xml in the folder <Apache ActiveMQ installation directory>/conf and add the following lines:
<transportConnectors> ... <transportConnectorname="ssl"uri="ssl://0.0.0.0:61617?trace=true&needClientAuth=true"/> ... </transportConnectors> <sslContext> <sslContextkeyStore="file:${activemq.base}/conf/cert.jks" keyStorePassword="YourKeyStorePassword" trustStore="file:${activemq.base}/conf/truststore.jks" trustStorePassword="YourTrustStorePassword"/> </sslContext>
ImportantChange the values of keyStorePassword and trustStorePassword to acceptable passwords. - Restart ActiveMQ.
- Update the following configuration options in the logger-settings section:
- jms-initial-context-factory=org.apache.activemq.jndi.ActiveMQSslInitialContextFactory
- jms-provider-url=ssl://activemq_host:61617
- Add the following configuration options in the jms-additional-context-attributes section:
- connection.ConnectionFactory.keyStore=cert.jks
- connection.ConnectionFactory.keyStorePassword=keyStorePassword
- connection.ConnectionFactory.keyStoreType=jks
- connection.ConnectionFactory.trustStore=truststore.jks
- connection.ConnectionFactory.trustStorePassword=trustStorePassword
- connection.ConnectionFactory.trustStoreType=jks
ImportantChange the values of connection.ConnectionFactory.keyStorePassword and ConnectionFactory.trustStorePassword to the values you set in the activemq.xml file.
This page was last edited on October 9, 2019, at 09:32.
Comments or questions about this documentation? Contact us for support!