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. ?



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

Answer / 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

More JMS Interview Questions

What is poison messages? And how to handle poison messages?

1 Answers  


How to create an ejb session in order to start a jms connection?

0 Answers  


What does jms stand for?

0 Answers  


What are Native Clients ?

1 Answers  


What are the different parts of a jms message?

0 Answers  


What is queue connection factory?

0 Answers  


What is Byte Message ?

1 Answers  


What is wire level protocol?

0 Answers  


How Does the JMS Work with the J2EE ?

1 Answers  


Which jms standard interface defines the methods to create the different types of messages?

0 Answers  


What is jms producer?

0 Answers  


Can we have more than one consumer for a jms queue?

0 Answers  


Categories