Re: Cannot detect closed session from client

2021-06-16 Thread Justin Bertram
> Is the consumer connection factory configured to retry connections after a failure? No. > For JMS, the best way for an application to detect a lost connection is via the ConnectionListener. Did you mean ExceptionListener? If so, that's only relevant for connection problems which is not the iss

Re: Cannot detect closed session from client

2021-06-16 Thread Arthur Naseef
Is the consumer connection factory configured to retry connections after a failure? If so, in the test, is there some additional step that prevents the client from reconnecting? For most applications, I recommend that consumers try indefinitely without interrupting the application. Any logic pla

RE: Cannot detect closed session from client

2021-06-16 Thread ksterg
Thanks, opened: https://issues.apache.org/jira/browse/ARTEMIS-3351 Closing the connection does throw an exception as expected, so the issue is related to closing the session. > This looks like a bug to me. Can you open a Jira [1]? > In the meantime it looks like you can close the *consumer* via t

Re: Cannot detect closed session from client

2021-06-16 Thread Justin Bertram
This looks like a bug to me. Can you open a Jira [1]? In the meantime it looks like you can close the *consumer* via the web console instead of the session. That should trigger an exception on the client as expected. Justin [1] https://issues.apache.org/jira/projects/ARTEMIS On Wed, Jun 16, 20