Justin, 

Thanks for trying to help! Some more details.

The runtime ERROR:

2019-03-13 18:50:56,415 main ERROR An exception occurred processing Appender
logMessagesJmsQueue
org.apache.logging.log4j.core.appender.AppenderLoggingException: Error
sending to JMS Manager 'logMessagesJmsQueue': JMS message producer not
available
        at
org.apache.logging.log4j.core.appender.mom.JmsManager.send(JmsManager.java:458)

jndi.properity file 

java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory
connectionFactory.ConnectionFactory=tcp://localhost:61616
logMessages=queue.queues/logMessages

Updated log4j2.xml 

        <JMS name="logMessagesJmsQueue"
            
factoryName="org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"
             factoryBindingName="ConnectionFactory"
             providerURL="tcp://localhost:61616"
             destinationBindingName ="logMessages"
             userName="xxx"
             password="xxx" >
            <JSONLayout compact="false" eventEol="true"/>
        </JMS>

The queue in atremis (pre-created)

org.apache.activemq.artemis:broker="0.0.0.0",component=addresses,address="logMessages",subcomponent=queues,routing-type="anycast",queue="logMessages"



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Reply via email to