Capture the acknowledgement somehow and display it
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Geof_P
Posted On:   Saturday, August 10, 2002 05:05 AM

Iam new to JMS.correct me if I am wrong.

I beleive that the message acknowledgement is a contract between the provider

and the subscriber.Therefore the message if acknowledged by the client
will be captured at the provider end.

Can i explicitly capture the acknowledgement somehow and display it,
if my
application is standalone and i myself am the creator of both the subscriber and the publisher.

(assumption - any of the three acknowledgements) .

Or is it vendor specific and the developer as such can never be sure .

Re: Capture the acknowledgement somehow and display it

Posted By:   Gautam_Marwaha  
Posted On:   Monday, August 12, 2002 05:08 AM

With AUTO_ACKNOWLEDGE session mode, once the call to receive (MessageConsumer) or onMessage (MessageListener) suceeds - it can be assumed that the message has been successfully consumed - hence also acknowledged.

You can also get the consumer side to explicitly acknowledge a message by setting the session as Session.CLIENT_ACKNOWLEDGE at the time of creation from Connection. The consumer side will then have to call Message.acknowledge() to acknowledge to avoid re-delivery

About | Sitemap | Contact