IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

logging using JMSAppender

  • 1.  logging using JMSAppender

    Posted 09/19/13 06:52 AM

    Hello Community,

    im trying to achieve logging using JMSAppender, in this regards need some help.

    I was successfully able to set the the Topic and able to send mesgs to configured topic using inbuilt JMS send methods.

    I want to
    1) set the TOPIC information in the log4j.xml file - Please help validate if the configuration provided is valid?

    <?xml version="1.0" encoding="UTF-8" ?>

    <log4j:configuration xmlns:log4j=“http://jakarta.apache.org/log4j/”>

        <appender name="jmsapp" class="org.apache.log4j.net.JMSAppender">
    <param name="InitialContextFactoryName" value="com.webmethods.jms.naming.WmJmsNamingCtxFactory" />
    <param name="ProviderURL" value="wmjmsnaming://ESB@localhost:6749" />
    <param name="TopicBindingName" value="LOG4j_Topic" />
    <param name="TopicConnectionFactoryBindingName" value="TopicConnectionFactory"/>
    
    
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d %-5p [%t] - %m%n" />
    </layout>
    </appender>
    
    
    <logger name="com.webmethods.jms">
    <appender-ref ref="jmsapp" />
    </logger>
    
    <root>
    <priority value="DEBUG" />
    <appender-ref ref="jmsapp" />
    </root>
    

    </log4j:configuration>

    [b]2)write a custom java service which takes care of loading the JMS appender details from log4j.xml file after the Log4J is initialized with provided TOPIC configuration

    • used DOMConfigurator to load the config : but java service fails with error (java.lang.reflect.InvocationTargetException: javax/jms/Connection)[/b]

    3) how to finally pump the mesgs to TOPIC?

    Your help/inputs are highly appreciated

    Regards
    Ram


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: logging using JMSAppender

    Posted 09/24/13 04:01 AM

    forum, please help

    Thanks


    #Integration-Server-and-ESB
    #webMethods