aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Basic question about JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Basic question about JMS" Watch "Basic question about JMS" New topic
Author

Basic question about JMS

Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Hi, Sorry for the simple question. But this is puzzling my mind very much. When we send a message to JMS proivder/IBM MQ, why we need acknowledgement? If send request succeeds doesnt mean that message has reached the actual message queue. Thanks in advance.
-Rizwan.


Rizwan
SCJA, SCJP, SCWCD, SCBCD, SCDJWS.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

JMS offers reliable messaging which basically means the JMS provider has to ensure that a message is really consumed (only once) by a client. Therefore you either have to use transacted sessions or you explicitly have to acknowledge each message in order to mark it as "consumed".

This article explains it in more detail.

Marco
Rizwan Mohammad
Ranch Hand

Joined: Sep 02, 2005
Posts: 445
Thanks Marco. You pointed out to very nice article.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic question about JMS