Questions tagged [druby]
6 questions
3
votes
2 answers
is_a? and dRuby objects
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…

Roberto
- 1,450
- 1
- 15
- 32
2
votes
1 answer
Thread problem with Druby and ActiveRecord
I have a rails app and a separate druby process. This process gives me some methods, and at the first line of each druby's method there is a call to ActiveRecord::Base.establish_connection, where the db_name depends on a param set by the rails…

Roberto
- 1,450
- 1
- 15
- 32
1
vote
0 answers
Error in druby when reading files
I'm using dRuby and i'm trying to read a file in this way:
SERVER'S CODE:
require 'drb/drb'
URI="druby://0.0.0.0:8787"
class TimeServer
def leer(nombre)
puts nombre
lines = []
File.open(nombre, "r") do |file|
…

user3624394
- 23
- 6
1
vote
1 answer
Bi-directional communication in distributed ruby
I'm trying to create a simple client-server application. I came across DRuby and I try it out. Seems really nice however I'm not sure if bi-directional communication is allowed.
The functionality that I want is the following:
The server starts…

patm
- 1,420
- 14
- 19
0
votes
1 answer
DRuby with Selenium WebDriver
I'm using distributed ruby so that I can save the selenium web-driver object in one script and use the same object in the next script when I run the clients I get an error indicating that #.
Has anyone tried…

Vishwanath Heddoori
- 83
- 11
0
votes
1 answer
how to stop a Rinda ring server in ruby
i'm wondering how can i stop a Rinda ring server, besides killing its process.
i'v checked ring.rb shipped with my ruby 1.9.3, and found the RingServer lacks api to stop itself. It opens an UDPSocket in initialize(), but it dose not contain any code…

Kaiqiang
- 47
- 1
- 7