I use the sample from this url http://azure.microsoft.com/en-us/documentation/articles/service-bus-java-how-to-use-jms-api-amqp/. I have 2 questions:
1. ACS or SAS
The connection URL,
amqps://[username]:[password]@[namespace].servicebus.windows.net
The username and password is from ACS authentication, but Azure Service Bus has changed its auth from ACS to SAS. Does it also support SAS auth? Like username is SAS policy, password is SAS policy's key.
2. Running throw Exception
Even I use ACS (if I create namespace with powershell, it's still ACS) or SAS, when running the sample code from http://azure.microsoft.com/en-us/documentation/articles/service-bus-java-how-to-use-jms-api-amqp/, they all throw an exception and failed.
Exception:"org.apache.qpid.amqp_1_0.client.Sender$SenderCreationException:
Peer did not create remote endpoint for link".
Is there any way to fix this problem?
By the way, which I connect is not Service Bus for windows(on-premise), it's for Azure Service Bus(Cloud). Thanks.