1 Reply Latest reply on May 14, 2013 2:11 PM by davsclaus

    camel audit logging in activemq using logback

    subbusdm

      I am new to Camel and just started learning and using it for current project.

       

      Am planning to audit the log message in activemq and to use 'logback' (I don't know whether any other suitable options available). 

       

      Based on some blogs/article, I started to use logback and started to implement as mentioned below.

       

      added the following items before pax logging services in startup.properties file.

       

      org/ops4j/pax/logging/logback-classic/1.0.9/logback-classic-1.0.9.jar=7

      org/ops4j/pax/logging/logback-core/1.0.9/logback-core-1.0.9.jar=7

       

      added the following configurations in org.ops4j.pax.logging.cfg file in etc folder.

       

      log4j.logger.jms=INFO, jms

      log4j.appender.jms=ch.qos.logback.classic.net.JMSQueueAppender

      log4j.appender.jms.initialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory

      log4j.appender.jms.providerUrl=tcp://localhost:61616

      log4j.appender.jms.queueConnectionFactoryBindingName=QueueConnectionFactory

      log4j.appender.jms.queueBindingName=queue\auditLog

       

       

      In my fuse project, I am logging the message as mentioned below.

       

      log4j:ERROR Could not instantiate class .

      java.lang.ClassNotFoundException: ch.qos.logback.classic.net.JMSQueueAppender not found by org.ops4j.pax.logging.pax-logging-service

       

      couple of same messages in activemq :

      javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.LoggingEventVO not found by org.fusesource.mq.mq-web-console

       

      I need some help to find out whether I have done anything wrong or misunderstood the implementation.

       

      Edited by: subbusdm on May 7, 2013 11:58 AM