File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Reject Dupicate messages in ActiveMq. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Reject Dupicate messages in ActiveMq." Watch "Reject Dupicate messages in ActiveMq." New topic
Author

Reject Dupicate messages in ActiveMq.

Pankaj Shet
Ranch Hand

Joined: Sep 08, 2006
Posts: 272

Hi Guys,

I am using ActiveMq alongwith Spring in my project.
I want my queue to be configured to reject the duplicate messages.
I tried my level best to do so. I tried googling for the same. but could not get anything.
Can you people help me to achieve the same.?

Regards,
Pankaj


PANKAJ SHET
B.Sc.(I.T.), S.C.J.P., S.C.W.C.D., PGDAC(CDAC)
Anindya Roy
Ranch Hand

Joined: May 11, 2014
Posts: 76
Please have a look http://camel.apache.org/idempotent-consumer.html and http://camel.apache.org/activemq.html
Pankaj Shet
Ranch Hand

Joined: Sep 08, 2006
Posts: 272

Hi Anindya,

Thanks for reply, I don't want to use camel. I am using simple ActiveMq with spring.

I have written a logic for rejecting the duplicates in the java class. I want to use this class as a filter which will intercept the message before reaching the messagelistener.

I want to know how to configure that class as an activeMq filter plugin.


Regards,
-Pankaj.
 
wood burning stoves
 
subject: Reject Dupicate messages in ActiveMq.