How to create a message queue?
2 posts in topic
Flat View  Flat View

Posted By:   Aarun_Jones
Posted On:   Monday, September 19, 2005 10:27 PM

We've a system where requests are stored in a db table as and when it arrives. We've processes which would look into the table for work and process it.

I would like to create a queue for the processes instead of executing a query everytime they are ready to process it. JMS or Oracle AQs are not options as the company is of the belief that they are way too complicated for what seems to be a trivial task. Is there a open source solution or any prebuilt classes for that?

Thanks in advance.


Re: How to create a message queue?

Posted By:   Haresh_Lala  
Posted On:   Saturday, December 3, 2005 04:38 PM

You can use File Folder as a queue to recieve incoming messages in XML or text format,Write a Java/Perl Listener polling against this folder,waiting for incoming request,on message arrival from your external application call your processes from Perl or Java listener and on successful processing delete message from file folder and pick the next message in loop.

Listener would be like a thread configured with sleep parameters.

Re: How to create a message queue?

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, September 23, 2005 10:36 PM

If you think that JMS or AQ etc are too complicated, then what's wrong with just using your database table? as long as you handle locking/contention.
About | Sitemap | Contact