Ezra Z. wrote:
You can just create your server and client in one swoop.
object over the wire.
Enjoy!
Oh, for crying out loud! Do you not sleep, or something?
Looks fantastic, I’ll be trying it out today…
Ezra Z. wrote:
You can just create your server and client in one swoop.
object over the wire.
Enjoy!
Oh, for crying out loud! Do you not sleep, or something?
Looks fantastic, I’ll be trying it out today…
Hi Alex,
I got the client and the server working on startup.
DRb.start_service(“druby://localhost:9002”, AppServer.new)
$client_drb = DRbObject.new(nil, “druby://localhost:9002”)
But there seems to be a drawback to starting servers in environmenet.rb:
There’s no shutdown process to hook in DRb.stop_service . At least I
haven’t
found one, which means I have to start the server outside of rails
separately.
Something strange happens: when I use this kind of DRb startup and I
shutdown
WebBrick or Apache (FCGI) the process still exists. But most amazingly:
I cannot
kill it!
So the port, e.g. remains occupied and thus restarting the Rails
application is
not possible anymore.
What really strikes me most is that I can not kill the process.
Since there
Greetings
Michael
On Mar 22, 2006, at 12:56 AM, Alex Y. wrote:
require ‘slave’
Looks fantastic, I’ll be trying it out today…–
Alex
Haha! I do sleep occasionally. This lib works great for the exact
purpose of this thread
Cheers-
-Ezra Z.
Yakima Herald-Republic
WebMaster
509-577-7732
[email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs