Message consumer cannot be closed before message acknowledgement.
An IllegalStateException will be thrown on close attempt.
No, because message cannot be delivered to closed consumer.
Yes, message acknowledgment does not depend on the message consumer state.
Yes, if there is some other active message consumer.
No. The acknowledgment would be lost.
Yes. Since message acknowledgment processing is performed at the session level,
it is still relevant after a consumer is closed.
|