Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between pub/sub and Point to Point i.e. p2p. ?

Answer Posted / maanya shree

pub/sub ? Publish/Subscriber

Publish/Subscriber can have multiple Publisher who publish message and multiple Subscriber who subscribe the messages. This is like watching TV multiple channel and multiple users .

One message can have more then one subscriber.

All the publish messages have the header and subscriber consume the message based on the header.

In JMS we say Topic.

P2p ? Point to point

One message have only one subscriber. Multiple publisher can send multiple messages to the Queue but each message has only one subscriber.

What is the different between JMS and RPC? view answer

RPC : Remote procedure Call

In RPC the method invoker waits for the method to finish execution and return the control back to the invoker. Thus it is completely synchronous in nature.

JMS : Java Messaging System

While in JMS the message sender just sends the message to the destination and continues it's own processing. The sender does not wait for the receiver to respond. This is asynchronous behavior.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does a sender application transport/send a message through jms?

879


What is difference between queue and topic in jms?

831


What is the functionality of a message listener in the context of jms?

811


Are foreign destinations handled within foreign jms messages?

896


What is the difference between the P2P (Peer to Peer) model and subscribe model?

913


What is the use of jms? Can we send message from one server to another server using jms?

837


List types of Messaging services supported by JMS?

754


What is the difference between a queue and a topic?

843


How jndi is related to jms?

925


What is the functionality of the oracle glassfish server? What added advantage it has on top of apache tomcat server?

744


What is jms testing?

885


What is the difference between jms and mq?

830


What is the use of jms?

881


What is a remote jms provider?

884


What are the different elements present in JMS?

862