| Author |
JMS What is Synchronous and which is asynchronous
|
sandeeprajsingh tandon
Ranch Hand
Joined: Mar 06, 2009
Posts: 50
|
|
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
Joined: Mar 06, 2009
Posts: 50
|
|
|
Hello Anyone there???
|
 |
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2231
|
|
"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
|
Save India From Corruption - Anna Hazare.
|
 |
sandeeprajsingh tandon
Ranch Hand
Joined: Mar 06, 2009
Posts: 50
|
|
Thanks Ravi
|
 |
Victor Ramen
Ranch Hand
Joined: Jul 14, 2008
Posts: 56
|
|
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
|
 |
 |
|
|
subject: JMS What is Synchronous and which is asynchronous
|
|
|