• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Query

 
Vaibhav Gargs
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am learning JMS and have queries listed below.

1. If we send the messages to a queue in order say M1, M2, M3, M4; will they be processed in the same order?

2. We have acknowledgement modes in JMS, can we read the acknowledgement messages ourselves? Where these messages are placed by the consumer?

3. Do we have any maximum capacity of the queue i.e. the maximum number/size of messages which can be placed in a queue?

Your response is highly appreciated. Thanks in advance.
 
Henry Wong
author
Sheriff
Posts: 22514
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vaibhav Gargs wrote:
1. If we send the messages to a queue in order say M1, M2, M3, M4; will they be processed in the same order?


Well, considering that there may be multiple consumers on a single queue, I think that it is safe to say that there isn't a guarantee of processing order.  Additionally, since it is possible for a consumer to die, and taking messages with it; these messages may have to be redelivered to other consumers, so there is no guarantee of delivery order either.

Henry

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!