Displaying 1 result from an estimated 1 matches for "customproxy".
2008 Mar 25
1
extending bdrb / running multiple servers
...isted in the config file.  Is there supposed to be a way  
to manage multiple backgroundrb servers?  I''ve read the manual, it''s  
not in there.  My solution so far is to subclass WorkerProxy, with a  
new init method that takes the host and port as parameters:
class BackgrounDRb::CustomProxy < BackgrounDRb::WorkerProxy
   def self.init(ip, port)
     @@config = BackgrounDRb::Config.read_config("#{BACKGROUNDRB_ROOT}/ 
config/backgroundrb.yml")
     @@server_ip = ip
     @@server_port = port
     new
   end
end
But this doesn''t seem very elegant to me, I worry abou...