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

[jira] [Created] (AMQ-3963) Provide a Pax JMS Appender to log info using ActiveMQ on Karaf/ServiceMix/Fuse ESB

Charles Moulliard created AMQ-3963:
--------------------------------------

             Summary: 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

        

[jira] [Commented] (AMQ-3963) Provide a Pax JMS Appender to log info using ActiveMQ on Karaf/ServiceMix/Fuse ESB

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Resolved] (AMQ-3963) Provide a Pax JMS Appender to log info using ActiveMQ on Karaf/ServiceMix/Fuse ESB

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Moulliard resolved AMQ-3963.
------------------------------------

    Resolution: Fixed

Code will move to ServiceMix project
                
> 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
>         Attachments: osgi-jms-appender.zip
>
>
> 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

        

[jira] [Updated] (AMQ-3963) Provide a Pax JMS Appender to log info using ActiveMQ on Karaf/ServiceMix/Fuse ESB

Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Moulliard updated AMQ-3963:
-----------------------------------

    Attachment: osgi-jms-appender.zip
    
> 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
>         Attachments: osgi-jms-appender.zip
>
>
> 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