Im not really sure what you are asking here, could you try to describe it a little more clearly
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
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?
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
Sorry,I am too careless. it should be CLIENT_ACKNOWLEDGE
I'm not even sure if you still have a problem or not...
Are you closing the Consumer before calling ACK?
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!
"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 :-)
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.