Hi John,
Thanks for the quick reply.
I don't know if one way to tackle this situation would be to tell amqp
to remove the message just after:
receive( item ) # workitem resumes in its process instance
or
launch( item ) # new process instance launch
is executed.
I have to check if it is possible/how-to to retrieve a message from
the queue but remove it manually (confirming).
Thanks for your tips.
Best regards.
Gonzalo.
On Mon, Nov 15, 2010 at 8:50 AM, John Mettraux <[email protected]> wrote:
>
> On Sun, Nov 14, 2010 at 11:43:40PM -0800, Gonzalo wrote:
>>
>> I got a question about the handle() method in ruote-amqp's receiver
>> class. (lib/ruote-amqp/receiver.rb)
>>
>> The initialize method does the subscription to the queue so every
>> message is automatically removed from the queue and then handled by
>> handle() method. So, I wonder if there is a chance for ruote to miss/
>> lose a message when the receiver grabs the message from the queue and
>> just after that, the engine stops before method handle(msg) is called.
>> In this case, when ruote starts again, the message is not in the queue
>> but neither in ruote's persistence (expressions)... Could this happen?
>
> Hello Gonzalo,
>
> AMQP or not, message loss can happen.
>
> * Fixing *
>
> The reply from a participants can get lost. The admin has then to re_apply or
> to cancel depending on the context (depending on the business process).
>
> http://ruote.rubyforge.org/process_administration.html
>
>
> * Prevention *
>
> I have no clue about AMQP, but I guess there are techniques to prevent such
> issues (maybe reserving the message with a timeout, and then confirming its
> consumption...).
>
>
> Best regards,
>
> --
> John Mettraux - http://jmettraux.wordpress.com
>
> --
> you received this message because you are subscribed to the "ruote users"
> group.
> to post : send email to [email protected]
> to unsubscribe : send email to [email protected]
> more options : http://groups.google.com/group/openwferu-users?hl=en
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en