Hi

thank you again for http://gist.github.com/198728.  But it is an
example off a push onto queue and wait for a response on a queue.  I
was hoping for a wait on response without a push first.  Is that
possible?

Regards,

Charles

On Oct 1, 12:23 am, John Mettraux <[email protected]> wrote:
> On Thu, Oct 1, 2009 at 11:53 AM, Charles.Magid <[email protected]> wrote:
>
> > Hi John,
>
> > Thank you very much.
>
> > Now that you have a more concrete example of what I am trying to do I
> > hope we can continue with the listener case from our irc?
>
> OK, so let's paste the conversation :
>
> ---8<---
> 11:25 charles_: John, thank you very much for your response to my last
> post.  I think I need to be a little more concrete. With that in mind
> I put up two new pasties which do not work but I am trying to get to
> work with 10k not just 10 listeners.  I hope that is possible.  
> ;)http://pastie.org/637565receive,http://pastie.org/637548send
> 11:25 jmettraux: 10 thousand listeners ?
> 11:25 charles_: more if possible
> 11:26 jmettraux: why such a big number ?
> 11:26 charles_: I can not answer that
> 11:26 charles_: I want to but I can not
> 11:26 charles_: ;(
> 11:26 jmettraux: well if 1 ruby process can handle 10k amqp listeners
> 11:27 jmettraux: then 1 ruote engine can do it
> 11:27 jmettraux: you should probably package this new version of your
> question in a continuation of the mailing list thread
> 11:27 jmettraux: so that Kenneth and others can pick it up
> 11:28 jmettraux:http://pastie.org/637548: the sendme participant is
> a block participant
> 11:29 jmettraux: it means that it executes its block and then
> immediately reply to the engine
> 11:29 jmettraux: so the process terminates immediately
> 11:29 jmettraux: in the block of sendme
> 11:29 jmettraux: what you have looks like ruby code
> 11:30 jmettraux: but it seems you're thinking you can call another
> participant "amqp" like this, out of thin air
> 11:30 jmettraux: ruote process definitions in ruby are turned into
> Abstract Syntax Tree at execution
> 11:30 jmettraux: they are not real ruby code
> 11:31 jmettraux: you cannot mix that like that
> 11:31 jmettraux: let me rewrite that pastie
> 11:31 charles_: that would be great
> 11:32 charles_: it is ok if the sends are sequential
> 11:32 jmettraux: yes
> 11:34 jmettraux:http://gist.github.com/198667
> 11:35 jmettraux: I have to go now, lunch time
> 11:35 jmettraux: if you continue the thread with the listener pastie,
> I'll reply there
> 11:35 jmettraux: ttyl !
> 11:37 charles_: thank you, ttyl?
> 11:37 jmettraux: talk to you later ;)
> 11:37 charles_: nice,
> 11:40 charles_: I am heading to bed,  my forum post yesterday was
> really about the listener gisthttp://pastie.org/637565,  I did not
> get what you were asking?
> 11:41 charles_: about the thread with the listener pastie 22:35
> 12:52 jmettraux: back
> 12:58 jmettraux: 22:35 in which timezone ?
> --->8---
>
> So,http://pastie.org/637548is wrong, it will end up with an error
> like "NameError: undefined local variable or method `amqp'" for each
> of the "sendme" participants.
>
> The right way would be something likehttp://gist.github.com/198667
>
> Pastiehttp://pastie.org/637565is exotic as well. The _break outside
> of the loop is meaningless. The loop itself is a Ruby loop not a ruote
> one (use the 'repeat' expression instead
> (http://ruote.rubyforge.org/exp/cursor.html)). "remaining" is
> interpreted as the Ruby method call... Copy and paste programming is
> not a way to go.
>
> http://pastie.org/637565-->http://gist.github.com/198728
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to