File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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.

Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294

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.

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:
subject: Basic question about JMS
It's not a secret anymore!