This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic." Watch "I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic." New topic
Author

I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic.

Juan Sotelo
Greenhorn

Joined: Dec 01, 2011
Posts: 10

Like the title said: I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic. is this possible?? What do I have to change in the appender??

log4j.appender.jms=org.apache.log4j.net.JMSAppender
log4j.appender.jms.InitialContextFactoryName=org.apache.activemq.jndi.ActiveMQInitialContextFactory
log4j.appender.jms.ProviderURL=tcp://localhost:61616
log4j.appender.jms.TopicBindingName=logTopic
log4j.appender.jms.TopicConnectionFactoryBindingName=ConnectionFactory
log4j.appender.jms.Threshold=ERROR

log4j.rootLogger=INFO, jms

Thanks in advance!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to send logs to a queue in ActiveMQ using log4j - I already did it, but to a topic.
 
Similar Threads
How to Send JMS Messages using Apache Camel
Very simple JMS ActiveMQ PTP interaction on Tomcat
how to send the message to Queue
messages retained by brocker even after client consumes them
actveMQ 5.5 jndi is not working