You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2012/08/08 17:12:20 UTC

[jira] [Comment Edited] (SMX4-1205) Provide a Pax JMS Appender to log info using ActiveMQ on Karaf/ServiceMix/Fuse ESB

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

Charles Moulliard edited comment on SMX4-1205 at 8/8/12 3:11 PM:
-----------------------------------------------------------------

Procedure to install the OSGI Pax JMS Appender
1) Compile project --> mvn install
2) Create the file org.apache.servicemix.logging.cfg under ${karaf.home}/etc directory and add entry destinationName=logTopic 
3) Start Fuse ESB server (4.4.1-xx-yy) or ServiceMix
4) install bundle --> install -s mvn:org.apache.servicemix.logging/pax-jms-appender/4.4.3-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
                
      was (Author: cmoulliard):
    Procedure to install the OSGI Pax JMS Appender
1) Compile project --> mvn install
2) Create the file org.apache.servicemix.logging.cfg under ${karaf.home}/etc directory and add entry destinationName=logTopic 
3) Start Fuse ESB server (4.4.1-xx-yy) 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: SMX4-1205
>                 URL: https://issues.apache.org/jira/browse/SMX4-1205
>             Project: ServiceMix 4
>          Issue Type: New Feature
>    Affects Versions: 4.4.3
>            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