[ 
https://issues.apache.org/jira/browse/AMQ-3963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13431111#comment-13431111
 ] 

Charles Moulliard commented on AMQ-3963:
----------------------------------------

Procedure to install the OSGI Pax JMS Appender

1) Compile project --> mvn install
2) Create the file org.apache.activemq.karaf.logging.cfg under 
${karaf.home}/etc directory and add entry destinationName=logTopic 
3) Start Fuse ESB server (4.4.1-xx-yy), Karaf or ServiceMix
4) install bundle --> install -s 
mvn:org.apache.activemq.karaf/pax-jms-appender/1.0-SNAPSHOT
5) Modify org.ops4j.pax.logging.cfg

log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:JMSLogAppender

## Be sure that ActiveMQ messages are not logged to 'jms' appender
log4j.logger.org.apache.activemq=INFO, stdout
log4j.logger.org.apache.activemq.karaf.logging = INFO, stdout

6) Check the topic logTopic
                
> Provide a Pax JMS Appender to log info using ActiveMQ on 
> Karaf/ServiceMix/Fuse ESB
> ----------------------------------------------------------------------------------
>
>                 Key: AMQ-3963
>                 URL: https://issues.apache.org/jira/browse/AMQ-3963
>             Project: ActiveMQ
>          Issue Type: New Feature
>            Reporter: Charles Moulliard
>
> Until now, this is quite complex to configure a JMS log4j appender with Ops4j 
> Pax Logging service. Procedure requires that we create a fragment bundle 
> (http://karaf.apache.org/manual/2.2.8/users-guide/logging-system.html). 
> An alternative and better solution is to create a JMSAppender implementing 
> the PaxAppender interface and uses OSGI service to register it with the list 
> of appenders available for Pax Logging.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to