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 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 17249
    
    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
 
jQuery in Action, 2nd edition
 
subject: Embedded ActiveMQ Broker : Why so many messages on the queue?
 
Similar Threads
JMS (Transaction ?) problemen on Weblogic 10.3
My AsynchronousConsumer Won't Listen!
Need help with JMS+ Spring + ActiveMQ
Jms Transaction and Threads
spring roo and activemq