Hi all

I post here because I don't know where to post this question. Perhaps someone could point me to the right place (amqp maintainer? jruby mailing list?). My stack is tomcat 6.0.26 + jruby 1.4.1 + ruote 2.1.10 + ruote-kit + ruote-amqp 2.1.10

The bug is that amqp messages/workitems doesn`t get delivered to AMQP server.

After registering participants and launched a simpe workflow workitems won't get dispatched to AMQP (RabbitMQ) server:

> - - [participants] - - - - - - - - - - - - - - - - - -
  config.register do
    require 'ruote-amqp'
    AMQP.settings[:host] = '127.0.0.1'
    AMQP.settings[:user] = 'guest'
    AMQP.settings[:pass] = 'guest'
    AMQP.settings[:logging] = true
    participant :copper, RuoteAMQP::Participant,
                :reply_by_default => true,
                :default_queue => 'ruote'
    # With this rackup I bundle as catchall, making it easy to experiment
    catchall
  end
> - - [/participants] - - - - - - - - - - - - - - - - - -


> - - [workflow] - - - - - - - - - - - - - - - - - - - - -
<process-definition name="secuencia">
  <sequence>
    <participant ref="copper" task="almacenamiento" queue="ruote"/>
    <participant ref="alice" task="aprobacion"/>
  </sequence>
</process-definition>
> - - [/workflow] - - - - - - - - - - - - - - - - - - - - -

If I launch one or more processes with this definition their workitems simply don't go out of the engine to the AMQP server. Processes don't have any errors and workitems (as expected by :reply_by_default parameter) gets dispatched to 'alice'.

But if I add:

AMQP.settings[:timeout] = 1

or any numeric value (except zero) and restart tomcat, only the *first* launched process gets its workitem dispatched, the rest of new launched processes have no workitem dispatched to AMQP server.

If I launch ruote-kit with rackup (under JRUBY 1.4.1) this behaviour repeats. Also tested with JRUBY 1.5.1 with tomcat and rackup.

But if I launch ruote-kit with rackup under RUBY 1.8.7 it works OK: all workitems get dispatched without problems.

Some pointer

Thanks

--
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