Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Web Services and the fly likes Difference betn request/reply and publish/subscribe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Difference betn request/reply and publish/subscribe" Watch "Difference betn request/reply and publish/subscribe" New topic

Difference betn request/reply and publish/subscribe

Ranjeeth Chandra

Joined: Sep 19, 2008
Posts: 7

Could anyone please tell me how reply/response and subscribe/publish vary in terms of implementation? I have worked on reply/request where we provide a request with required parameters and we get the response back. We will send a request everytime we need the info.

How does a sub/pub work? Do we get feeds from the service, after subscribing to that service just once? If yes, how/where do we get the response XML which holds the desired data? Do we mention those details at the time of subsciption?

Please throw some light on this...

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12910
A google search for Java Message Service Tutorial found this Sun site.
It is sorta covered in the JavaRanch Style Guide.
subject: Difference betn request/reply and publish/subscribe