DRb Questions

  • Thread starter James Edward Gray II
  • Start date
J

James Edward Gray II

I've seen a couple of tutorials now claim that both sides need access
to all classes used by client and server, but that's just a half
truth, right?

I'm needing to build a client class that just defines an API, then
allow clients to subclass it to customize it to their needs. The
server will be able to handle this as long as the client object is
DRbUnDumped or proxied, right?

I just want to make sure I'm not crazy, before I try to build it.
Thanks.

James Edward Gray II
 
I

Ian C. Blenke

James said:
I'm needing to build a client class that just defines an API, then
allow clients to subclass it to customize it to their needs. The
server will be able to handle this as long as the client object is
DRbUnDumped or proxied, right?


If you pass a proxied object rather than marshalling it, yes. The server
will be able to access the client object in the context of the client.

I'm using this fact now with great success:

http://ian.blenke.com/drb

In this model, the server uses the $stdin/$stdout/$stderr of the calling
client. Neat stuff.
I just want to make sure I'm not crazy, before I try to build it.
Thanks.


Everyone is crazy. That shouldn't stop you from trying.

- Ian C. Blenke <[email protected]> http://ian.blenke.com/
 
E

Eric Hodel

I've seen a couple of tutorials now claim that both sides need
access to all classes used by client and server, but that's just a
half truth, right?

Half truth. Access to all classes or appropriate use of
DRb::DRbUndumped.
I'm needing to build a client class that just defines an API, then
allow clients to subclass it to customize it to their needs. The
server will be able to handle this as long as the client object is
DRbUnDumped or proxied, right?

Should work perfectly.
 
J

James Edward Gray II

If you pass a proxied object rather than marshalling it, yes. The
server will be able to access the client object in the context of
the client.

I'm using this fact now with great success:

http://ian.blenke.com/drb

In this model, the server uses the $stdin/$stdout/$stderr of the
calling client. Neat stuff.

Very nice link. Thanks for sharing!

James Edward Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DRb::DRbObject.alive? 3
DRb Basics 19
drb problem? ringy-dingy won't answer... 0
DRb Crashing 17
DRb and ActiveRecord 3
Raising my own exceptions with DRb 1
Drb in depth ? 9
Drb and mystery ports (and Queue question) 3

Members online

No members online now.

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top