• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic