readme-jms.txt 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ******************************************************************************************
  2. * Read Me *
  3. * This software is the confidential and proprietary information *
  4. * of IBM. ("Confidential Information"). You *
  5. * shall not disclose such Confidential Information and shall use *
  6. * it only in accordance with the terms of the license agreement *
  7. * you entered into with IBM. *
  8. * *
  9. * Copyright (C) 2013 by IBM. All rights reserved. *
  10. ******************************************************************************************
  11. Steps for enabling JMS Appender
  12. 1. Enable ipf sds logging (rename ipfsdsclientconfig.xml.sample -> ipfclientconfig.xml in configuration folder)
  13. Use correct settings of a server in jsm appender block
  14. <!-- JMS appender -->
  15. <appender name="jmsAppender" class="org.apache.log4j.net.JMSAppender">
  16. <param name="InitialContextFactoryName" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
  17. <param name="ProviderURL" value="tcp://localhost:61616"/>
  18. <param name="TopicBindingName" value="logTopic"/>
  19. <param name="TopicConnectionFactoryBindingName" value="ConnectionFactory"/>
  20. </appender>
  21. 2. Set logging category with jms appender (debug)
  22. <!-- DLS Archive Service -->
  23. <category name="Audit.Archive.DLS" class="com.cognos.indications.LogTypedLogger">
  24. <level value="debug"/>
  25. <appender-ref ref="jmsAppender"/>
  26. </category>
  27. 3. Add/edit jndi.properties file in c10install\p2pd\web-inf\lib folder with mapping data as
  28. topic.logTopic=Cognos_Report_archive
  29. Note: If the file jndi.properties does not exist in this location, so you may need to create it
  30. 4. Copy third party active mq library (activemq-all.jar) in c10install\p2pd\web-inf\lib folder
  31. 5. Restart IBM Cognos server