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 EJB and other Java EE Technologies and the fly likes Doubt about why I have 2 consumers, I think I should have one! (ActiveMQ) 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 » Java » EJB and other Java EE Technologies
Bookmark "Doubt about why I have 2 consumers, I think I should have one! (ActiveMQ)" Watch "Doubt about why I have 2 consumers, I think I should have one! (ActiveMQ)" New topic
Author

Doubt about why I have 2 consumers, I think I should have one! (ActiveMQ)

Juan Sotelo
Greenhorn

Joined: Dec 01, 2011
Posts: 10
Hello everybody.. well I am working with spring and ActiveMQ.I followed some examples and I was able to send and receive a message to a JMS queue. But I have a doubt, since, when I look into the ActiveMQ console I have 2 consumers! and I wonder why??? I Should have just one!.

I made a quick example project (so, you dont have to loose much time), so you can see all the code and test it... so you can replicate the problem..

Also this example app could be helpfull for some one else. (Spring MVC and ActiveMQ, example project)

I hope someone have time to take a look at this and answer this doubt!

Thanks.

http://www.megaupload.com/?d=A79K8F1V
Juan Sotelo
Greenhorn

Joined: Dec 01, 2011
Posts: 10
I already solve the problem. The issues was that I was calling a configuration file twice and this actions produce 2 listeners (2 consumers).

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt about why I have 2 consumers, I think I should have one! (ActiveMQ)
 
Similar Threads
Doubt on doubt
a doubt
Doubt...
doubt??
Generics doubt