ActiveMQ comes bundled with quick, easy yet powerful Ant-based consumer and producer scripts. Look at the example/ directory of the base installation. Run "ant" there and you'll get instructions. Anyway, for your use case, this command would do the trick:
ant consumer -Durl=tcp://10.10.10.10:61616 -DsleepTime=10000000 -Dsubject= my.topic.name -Dtopic=true That will start up a consumer that blocks 166 minutes between receive and receive. Hopefully sufficient to simulate your scenario. Regards, *Raúl Kripalani* Principal Consultant | FuseSource Corp. r...@fusesource.com | fusesource.com <http://www.fusesource.com/> skype: raul.fuse | twitter: @raulvk <http://twitter.com/raulvk>, @fusenews<http://twitter.com/fusenews> <http://twitter.com/fusenews> On 2 June 2012 22:49, JacobS <jacobhame...@gmail.com> wrote: > Hi, > We are currently using amq 5.5 in our product and we are facing a bug that > causes one of our consumers to stop consuming messages, the problem is that > this bug causes the entire topic to stop working. we added a > 'pendingMessageLimitStrategy' and we wish to test if that solves the > 'halted > topic' problem. > > What is the best way to simulate a frozen topic consumer ? > > the consumer should be connected and active, but unable to consume messages > , and hopefully the pendingMessageLimitStrategy would kick in and prevent > the topic from slowing down. > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/reproduce-a-slow-consumer-bug-tp4652942.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >