• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Synchronous messaging question

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what situation should messaging be used if you require an instant response?
[ March 22, 2003: Message edited by: Timber Lee ]
 
Eduard Manas
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never. Messaging is asynchronous in nature and therefore does not ensure instance response. Even more, when using messaging you cannot even have a request/response model in the same transaction.
Eduard
 
Byron Estes
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't want to be argumentative, but that's not strictly true. You need to know how the MOM server is configured and in what time frame it is supposed to respond. Messaging can be used in a synchronous fashion. It's really no different than when you create a client/server blocking connection via a socket. The JMS connection can block and wait for a response too. What's important is whether or not the JMS service was designed to respond in a synchronous mode and whether or not it can respond quickly enough for the given application and it's given volume of transactions. RPC web services which are most often SOAP/HTTP can be implemented with the MOM as the transport instead of HTTP. The benefit you get can be the durability of the message and the guaranteed delivery that is a part of the magic of messaging.
Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic