Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-19 Thread Peter Chandler
The default implementation for Spring Boot's SLF4J is Logback (Note: Logback's last release was 2 years ago and has removed the JMSAppender). SLF4J walks the classpath to find/bind an/first implementation i.e., Logback. Hence, remove logback and add log4j. If your a picture guy (see attached) I

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-19 Thread Peter Chandler
The default implementation for Spring Boot's SLF4J is Logback (Note: Logback's last release was 2 years ago and has removed the JMSAppender). SLF4J walks the classpath to find/bind an/first implementation i.e., Logback. Hence, remove logback and add log4j. If your a picture guy (see attached) I

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-18 Thread Justin Bertram
Thanks for following up. I was just puzzling over this. Justin On Mon, Mar 18, 2019 at 7:37 PM Peter Chandler wrote: > Justin, > > Got it working. Thanks! > > > 1. remove logback from spring boot. > > org.springframework.boot > spring-boot-starter >

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-18 Thread Peter Chandler
Justin, Got it working. Thanks! 1. remove logback from spring boot. org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-logging

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-18 Thread Peter Chandler
Justin, Made the changes you suggested and got the same results.Full stacktrace below. Note: this issue has been un-answered on stack overflow for 3 months https://stackoverflow.com/questions/53779984/springboot-log4j2-jms-appender-jms-message-producer-not-available */src/main/resources/Log4j2.xml

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-18 Thread Peter Chandler
Justin, Made the changes you suggested and got the same results.Full stacktrace below.Note: this issue has been un-answered on stack overflow for 3 months https://stackoverflow.com/questions/53779984/springboot-log4j2-jms-appender-jms-message-producer-not-available*/src/main/resources/Log4j2.xml *

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-17 Thread Peter Chandler
Justin, Thanks. I will give it a try. Peter. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-14 Thread Justin Bertram
For what it's worth, Artemis ships with a lot of JMS examples which use jndi.properties. Your jndi.properties is using this: logMessages=queue.queues/logMessages This looks wrong to me. I think it should be: queue.queues/logMessages=logMessages The first part ("queue.") tells the JNDI

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-14 Thread Peter Chandler
log4J-2, JMS Appender requires JNDI bindings. Hence looking for a Spring Boot, Artemis, JNDI example configuration. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-14 Thread Peter Chandler
For the record I have used the JMSAppender for the last 10+ year. Dependencies. org.springframework.boot spring-boot-starter-parent 2.1.1.RELEASE org.springframework.boot spring-boot-starter

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-13 Thread Peter Chandler
Is *port *a typo in the doc (HornetMQ leftover)? connectionFactory.ConnectionFactory=tcp://myhost:5445 -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-13 Thread Peter Chandler
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

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-13 Thread Justin Bertram
Based on your response I'm guessing you read the documentation and didn't find it particularly helpful so let's start from the top. I assume that when you say, "Trying to configure log4j2 JMS Appender for activemq-artemis which uses JNDI for the connection factory and destinations," that you've

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-13 Thread Peter Chandler
Of course. 1. I add some *stuff* to jndi.properties file. 2. Configure the log4j2.xml file with *stuff* 3. Restart activemq-artemis? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-12 Thread Justin Bertram
Have you taken a look at the ActiveMQ Artemis documentation [1] on this subject? Justin [1] https://activemq.apache.org/artemis/docs/latest/using-jms.html (scroll down to the "JNDI" section) On Tue, Mar 12, 2019 at 9:42 PM Peter Chandler wrote: > Trying to configure log4j2 JMS Appender for

activemq-artemis & JNDI & Spring Boot & log4j2 & JMS Appender.

2019-03-12 Thread Peter Chandler
Trying to configure log4j2 JMS Appender for activemq-artemis which uses JNDI for the connection factory and destinations. Questions 1. How do I populate activemq-artemis's JNDI Service with the required Objects? 2. What names do I use in the Log4j2.xml?