-
1. Re: How to set the timeout of JMS client_acknowledge
ataylor Oct 29, 2010 5:51 AM (in response to jombo)Im not really sure what you are asking here, could you try to describe it a little more clearly
thanks
-
2. Re: How to set the timeout of JMS client_acknowledge
jombo Oct 29, 2010 10:23 AM (in response to ataylor)sorry, my english is very poor. i mean i use the following code to open a session in cilent
Session session = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
and after receiveing a message and dealing with it , my cilent will acknowledge that it has reveived the message successfully
messageReceived.acknowledge();
but in some situations , the server can not receive the acknowledgement. so it seems that after a short time ,the server will think the the message is fail to be consumed. my question is how to config the timeout prieod?
Jombo
-
3. Re: How to set the timeout of JMS client_acknowledge
ataylor Oct 29, 2010 6:28 AM (in response to jombo)firstly tyou are using auto ack so you dont need to acknowledge the message.
secondly what do you mean by the server cannot receive the ack
-
4. Re: How to set the timeout of JMS client_acknowledge
jombo Oct 29, 2010 10:27 AM (in response to ataylor)Sorry,I am too careless. it should be CLIENT_ACKNOWLEDGE
-
5. Re: How to set the timeout of JMS client_acknowledge
clebert.suconic Oct 29, 2010 11:14 AM (in response to jombo)I'm not even sure if you still have a problem or not...
Are you closing the Consumer before calling ACK?
-
6. Re: How to set the timeout of JMS client_acknowledge
jombo Oct 29, 2010 11:40 AM (in response to clebert.suconic)i still have not got the answer.
i 'am not sure if you have understood what i said.
the consumer may not be closed, it just receive the message but it does not call ACK or it calls ACK but the server does not receive the acknowledgement because of some reasons.
will the server think that the message is not be consumed after a periods? if true, can i config the periods?
my poor english! god!
-
7. Re: How to set the timeout of JMS client_acknowledge
clebert.suconic Oct 29, 2010 11:36 AM (in response to jombo)"i 'am sure that if you understand what i said."
Sorry, I have no clue what you're talking about...
Speak in "java" then :-) Provide some code and we may see what you're doing wrong :-)
-
8. Re: How to set the timeout of JMS client_acknowledge
tony36 Mar 30, 2015 1:17 PM (in response to clebert.suconic)I think what he's asking is "can a timeout be set on the server for receipt of a client ack"?
The example he cites is something like:
- Consuming app sets CLIENT_ACKNOWLEDGE when consuming a message.
- A message is consumed, but for whatever reason (eg, a bug in the app) the ACK doesn't make it back to the server.
- Presumably there's some sort of timeout that will eventually get hit (and cause a re-delivery of the message).
He wants to know (as do i) whether or not that timeout can be configured on the server. I'm particularly interested in version 2.4.0.Final.