# Publish/Subscribe pattern in DRb

**URL:** <https://www.ruby-forum.com/t/publish-subscribe-pattern-in-drb/59156>\
**Category:** Ruby\
**Created:** [April 29, 2006, 7:09am UTC](https://www.ruby-forum.com/t/publish-subscribe-pattern-in-drb/59156 "2006-04-29T07:09:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bujji\_choudhary](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cdc98d/32.png) [@bujji\_choudhary](https://www.ruby-forum.com/u/bujji_choudhary)\
**Post date:** [April 29, 2006, 7:09am UTC](https://www.ruby-forum.com/t/publish-subscribe-pattern-in-drb/59156/1 "2006-04-29T07:09:29Z")

</div>

HI all,  
I have 3 files.In pubsubserver.rb, I wrote the classes(according to  
RCR198). In Publisher.rb, i have created an object of main class and  
bound it to the server

server=Abc.new()  
Drb.start\_service(‘druby://:localhost:9000’,server)  
Drb.thread.join

and in another file client.rb, i am using this server object and  
subscribing…but it is not working…it is working in non distributed  
fashion…Can anybody guide?

–vinay

---

<div class="post-metadata">

**Author:** ![bujji\_choudhary](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cdc98d/32.png) [@bujji\_choudhary](https://www.ruby-forum.com/u/bujji_choudhary)\
**Post date:** [May 3, 2006, 6:58pm UTC](https://www.ruby-forum.com/t/publish-subscribe-pattern-in-drb/59156/2 "2006-05-03T18:58:14Z")

</div>

On Apr 28, 2006, at 10:07 PM, bujji choudhary wrote:

> subscribing…but it is not working…it is working in non  
> distributed fashion…Can anybody guide?

What do you mean by “it is not working”?

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
