File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Observer v/s Publish Subscribe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Observer v/s Publish Subscribe" Watch "Observer v/s Publish Subscribe" New topic

Observer v/s Publish Subscribe

chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

Hi all,

Christopher here explains what an Observer Design Pattern is.

I just want to know, whether Observer Design Pattern is Similar to the Publish/Subscribe mechanism.Or the way to put it would be, what are the differences between them??

Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
Martijn Verburg

Joined: Jun 24, 2003
Posts: 3275

The Observer pattern is arguably a subset of the pub/sub pattern, see here for some details.

Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
I agree. Here's the link:
subject: Observer v/s Publish Subscribe
It's not a secret anymore!