Process MessageQueue

1 view
Skip to first unread message

Hemaraj A

unread,
Apr 16, 2009, 6:20:39 AM4/16/09
to poc...@googlegroups.com
Hi,

I am planning to use PoCo::MQ for one of my projects. I have to
collect information from many hosts and process those information. I
can get the information/message from all the hosts through
MessageQueue and store it in different queue. Is there anyway in
MessageQueue to process those messages which I got from all the hosts.
I have to run different script for each queue with the information
stored in the MQ. Is it possible to do this using MQ?

I can very well process the messages by writing a script. However, I
will have to create each process/pid to call each script for each
message which I feel is not a clean way to do. My goal is have a
single daemon to process all the queues. I though of checking with you
whether there is any way to process the MessageQueue using PoCo::MQ?
Please let me know if you have any queries.

Thanks in advance.

Regards,

Hemaraj

Kevin Esteb

unread,
Apr 16, 2009, 11:05:09 AM4/16/09
to poc...@googlegroups.com
MQ, by itself, will not do what you want. It is just the intermediary. What I do is have a process that spawns multiple POE::Component::Client::Stomp sessions. Each session listens on a queue and processes messages as they arrive.

Hemaraj

unread,
Apr 21, 2009, 6:55:17 AM4/21/09
to PoCo::MQ
Hi Kevin,

Thanks for the info! Will all POE::Component::Client::Stomp sessions
will run as a single process or multiple processes for each
POE::Component::Client::Stomp session?

Regards,

Hemaraj

Kevin Esteb

unread,
Apr 21, 2009, 11:33:56 AM4/21/09
to PoCo::MQ
They run within a single process.
Reply all
Reply to author
Forward
0 new messages