File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic