you cannot do this with log4j config.
You need to configure the  discarding behavior on the broker.
see: http://activemq.apache.org/slow-consumer-handling.html

2009/12/1 Asheesh Gupta <[email protected]>

>
> Hi Gary,
>     for logging the messages in the activemq Topic, i am log4j properties.
>
> Here is log4j properties file changes for topic logging.
>
> 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=Topic
> log4j.appender.jms.TopicConnectionFactoryBindingName=ConnectionFactory
>
>
> Could please tell me whether its possible to purge the messages using log4j
> properties?
>
> or is there any way to delete or purge the messages from topic?
>
>
> Thanks in advance.
>
> Asheesh
>
>
>
> --
> View this message in context:
> http://old.nabble.com/How-to-purge-or-Delete-messages-from-ActiveMq-Topic-tp26526453p26588101.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Reply via email to