On Thu, 18 Mar 2021 at 12:58, akabhishek1
<[email protected]> wrote:
>
> Hi Robbie,
>
> One more details on my last post. We have added JmsConnectionListener in
> Qpid-56 application. We got three log entries from JmsConnectionListener.
> Please find below details.
>
> 1. 3/18/2021, 3:48:18.176 AM - "onConsumerClosed" method -  Consumer closed
> of '**-test-**/subscriptions/56-sub1'
>     ExceptionStackTrace -
> https://github.com/abhikt48/servicebus/blob/master/18-March/onConsumerClosed_03_48_18_AM.txt
> 2. 3/18/2021, 3:48:18.245 AM - "onConnectionEstablished" method - Connection
> established URI
> 'amqps://****.servicebus.windows.net?transport.tcpKeepAlive=true&amqp.traceFrames=true'
> 3. 3/18/2021, 3:48:18.381 AM - "onConnectionFailure" method - Connection
> failure
>         ExceptionStackTrace -
> https://github.com/abhikt48/servicebus/blob/master/18-March/onConnectionFailure_03_48_18_AM.txt
>
>
> Surprisingly -
>    1. 3:48:18 AM - when my method checks for "isConnectionActive" then
> connection was active(true) which should be false
>    2. 3:48:18 AM - when my method "isConsumerActive" checks for
> '**-test-**/subs..s/56-sub1' then consumer was active
>    3. Looks like connection got established automatically without reconnect
> attempt and we are not using failover protocol as well.
>
> Questions -
> 1) As we are not using failover protocol, so connection should not be
> recover automatically. Can you please suggest why connection got reconnect
> automatically?

The obvious suggestion is that it didnt happen that way. I've outlined
my thinking of some potential actual behaviour in my earlier reply to
the previous message.

The client literally doesn't load its reconnection logic if you aren't
using failover. It can then only establish a TCP connection during a
factory.createConnection(..) call. The logging shows evidence that
such a call was actually made, as the connection details changed in a
way that happens during those calls.

> 2) Looks like consumer also recover automatically without reconnect attempt.
> We don't have any “consumerEstablished” notification in
> JmsConnectionListener, but based on testing I can confirm that consumer
> still receiving messages.
>    Can you please suggest why consumer got reconnected automatically without
> trying to reconnect consumer?

Similarly, the obvious answer is that it didnt happen that way. The
only place I'm aware the client can reestablish consumers by itself is
in the failover provider logic, which as above simply wasnt loaded if
you aren't using failover. Plus it was a new connection so the client
would have no knowledge of consumers anyway.

>
> Please take a look on this issue and let me know for any information.
>
> Regards,
> Abhishek Kumar
>
>
>
>
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to