File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Embedded ActiveMQ Broker : Why so many messages on the queue? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Embedded ActiveMQ Broker : Why so many messages on the queue?" Watch "Embedded ActiveMQ Broker : Why so many messages on the queue?" New topic
Author

Embedded ActiveMQ Broker : Why so many messages on the queue?

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi all,
I have configured a an embedded ActiveMQ Broker in a JmsTemplate to start up for unit tests.
But I am confused as it seems there are many messages on the queue although I did not put any there...

Marking resolved... I'm just clearing the messages out between each test for now.


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Duran Harris wrote:Hi all,
I have configured a an embedded ActiveMQ Broker in a JmsTemplate to start up for unit tests.
But I am confused as it seems there are many messages on the queue although I did not put any there...

Marking resolved... I'm just clearing the messages out between each test for now.



Wait, you have to have put some messages on a queue. Messages don't get put on a queue without you putting them there. ActiveMQ won't make messages out of thin air, Spring doesn't and put them on your queue. Some code somewhere that you wrote put them there.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Embedded ActiveMQ Broker : Why so many messages on the queue?