drb

is_a? and dRuby objects

Hi, I'm working with dRuby and basicly I'm calling a remote method that returns me an object. In the clientside I have this code: handle_error(response) if response.is_a?(Error) where response is the DRbObject. (I've developed this code before using dRuby and I'm returning an Error object if something went wrong). The problem is tha...

Drb and "is recycled object" exception

Hi all, I'm running in a strange issue. My controller calls a drb object @request_handler = DRbObject.new(nil, url) availability_result = @request_handler.fetch_availability(request, @reservation_search, params[:selected_room_rates]) and this Drb object is making some searches. but sometimes, in a linux environments, I get a "0xdba...

Where is the correct place to initialize the DRb service within a Rails application?

I'm using DRb within a Rails application to offload an expensive task outside the Rails process. Before initializing the client stub with DRbObject.new it is necessary to initialize the DRb service with DRb.start_service. Doing this in model or controller appears to leave threads in an uncertain state. When I exit mongrel it says: Reap...

How reliable is DRb?

Are there any issues to consider when using DRb for implementing an in-memory message queue and for synchronizing actions between processes? I heard that it could be unreliable, but haven't found anything on the web that confirms this assertion. In case it's relevant, these would be processes running with a rails app environment that...

Is DRb.start_service thread-safe?

I have an issue attemping to do DRb.start_service from 3 separate forked processes, is DRb.start_service thread/process-safe? Out of the 3 processes, 2 start DRb servers fine, the 3rd hangs forever at the DRb.start_service line, I would like to know if this is a limitation of DRb, or a problem elsewhere in the code. ...

[Ruby] Threads or DRb?

I need to have 2 (or maybe 3) continuously running "facets" of a program in Ruby - a communications thread, a render thread and maybe a caching thread. The idea is the rendering thread shows a slide-show (whose definition is read from file) and all slides are retrieved from a remote HTTP server by the communications thread. The renderi...

Is there any Python module similar to Distributed Ruby

I am new to Python. Just want to know is there any module in python similar to ruby's drb? Like a client can use object provided by the drb server? ...

Should I be using Rails or Ruby for this website application? How?

Hi all, I'm very new to web programming (or actually, very old to it, since the last time I messed with the web was HTML 1.1), but now need to deploy a web application quickly. It seems like every time I turn around, there's new acronyms and technologies to learn (JSON, XMLRPC, GWT, Javascript, Rails, etc). Here's what my app must do:...

DRb connecting to linux client from windows

I have a few DRb services running on different windows machines and they can all connect and talk with each other just fine. When I put these DRb services on Linux machines and try to connect from windows nothing happens and I get a DRB:ConnError ... the service on Linux is never touched. So I did a netstat on the linux box and the servi...

Limit Ring server to localhost only. RingFinger.new('localhost') apparently doesn't work

Am using RingyDingy. Have altered call to Rinda::RingFinger.new to Rinda::RingFinger.new('localhost') in ring_server.rb and in ringy_dingy.rb, but still get, intermittently, attachments to like named services on my compatriots (in the same lan segment) which causes things to disappear trying to run on their machine (or on mine from the...