[Backgroundrb-devel] MiddleMan behavior

swistak at expro.pl swistak at expro.pl
Mon Jan 22 08:24:26 EST 2007


i found some questions and answers on mailing lists but there is still a 
problem - when i want to create new worker from within  a worker - 
::BackgrounDRb::MiddleMan.new_worker(:class => :second_worker, :args => 
{:id=>2, :text=>"slave"}) works

but when i want to get reference to that object: 

::BackgrounDRb::MiddleMan.worker(@second) 

yields: 

NoMethodError: undefined method `worker' for BackgrounDRb::MiddleMan:Class
       from (drbunix:///tmp/backgroundrbunix_localhost_2999) 
(drbunix:///tmp/backgroundrb.8516/first_worker_c6824af92d0ae35bcbba75df4e282 
b6f_0_0.158526073008825) 
/home/swistak/rails+backgroundrb/lib/workers/first_worker.rb:26:in 
`get_second_ref'
       from (irb):223
       from :0 


More information about the Backgroundrb-devel mailing list