David De Franco created QPIDJMS-435:
---------------------------------------

             Summary: Failover reconnection fails when using Azure Sas token 
authentication
                 Key: QPIDJMS-435
                 URL: https://issues.apache.org/jira/browse/QPIDJMS-435
             Project: Qpid JMS
          Issue Type: Bug
          Components: qpid-jms-client
    Affects Versions: 0.37.0
            Reporter: David De Franco
         Attachments: log.txt

For authenticating connections with the Azure Service Bus we use sasl mechanism 
ANONYMOUS. After a connection is opened, before any other activity, we send a 
sas token to a special queue. This works fine as long as the connection is not 
remotely closed.

When the connection is remotely closed it cannot be restored by the 
FailoverProvider because of recovery of an active session on the connection. 
When the session is recovered it starts listening on an unauthenticated 
connection.

This also prevents re-authenticating the connection by sending the sas token 
again. See attached log.

Is it possible to prevent the recovery of the session? We already moved the 
re-authentication after the try-with-resources statement where the session is 
created. This way we assumed the session would be closed, preventing recovery.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to