Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS What is Synchronous and which is asynchronous

 
sandeeprajsingh tandon
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I got confused in JMS points . I hope someone can clear it.

Am i correct

1 ) "MDB's are for asynchronous communication."

2) If above is true, then MDBs even if listening on Queue or Topic are always asynchronous

3) The message producer be it queue or topic doesnot expect MDB to be UP while delivering message, Queue or Topic.

4) Bu then Queue comes under PointToPoint communication which means, the consumer has to be UP.

5) There is no way to make MDB synchronous.

 
sandeeprajsingh tandon
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Anyone there???
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"MDB's are for asynchronous communication."
absolutely true .

If above is true, then MDBs even if listening on Queue or Topic are always asynchronous :
question doesn't make sense as already you specified that ""MDB's are for asynchronous communication."


The message producer be it queue or topic doesnot expect MDB to be UP while delivering message, Queue or Topic.
: Absoultely True

But then Queue comes under PointToPoint communication which means, the consumer has to be UP :
: The Consumer has to be up if you want your Message to be picked up from the Queue and Processed . (Incase if the Consumer (MDB) is down your message will stay in the Queue only . )


You are free to ask if you aren't clarified .

Thanks

 
sandeeprajsingh tandon
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ravi
 
Victor Ramen
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I do not have a lot of expereince in this, but I will try to answer.
With regards to the last question:

MDBs (or rather JMS messages) are designed for asynchronous communication. I guess messages by default are persistent and durable( which means even if destination is not up at the time of message delivery, it can be delivered later).

But if required, they can be made synchronous...but this is not recommended. Default is : asynchronous

Best wishes,
Roy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic