I have looked around in Java messenger code, I think it handled amqps already. Its use looks below.
... String certificateFile = "C:/ssl/crt.pem"; String privateKeyFile = "C:/ssl/key.pem"; String privateKeyPassword = "password"; EngineFactoryImpl engineFactoryImpl = new EngineFactoryImpl(); ProtonJSslDomain createSslDomain = engineFactoryImpl.createSslDomain(); createSslDomain.setCredentials(certificateFile, privateKeyFile, privateKeyPassword); createSslDomain.setPeerAuthentication(VerifyMode.ANONYMOUS_PEER); Messenger mng = new MessengerImpl(java.util.UUID.randomUUID().toString(), engineFactoryImpl, new DriverFactoryImpl(), new MessageFactoryImpl()); ... But it does not help to make connected with Azure Service Bus On 30 May 2013 15:10, Gordon Sim <[email protected]> wrote: > On 05/30/2013 08:19 AM, Kyle wrote: > >> Hi, >> >> I am using Java Qpid Proton to exchange messages with Windows Azure >> Service >> Bus and I got the error of UnresolvedAddressException. >> >> Has anyone had experience with with Windows Azure could help me? >> >> The code I used as the below. >> .. >> messenger.start(); >> >> MessageFactoryImpl messageFactoryImpl = new MessageFactoryImpl(); >> Message msg = messageFactoryImpl.**createMessage(); >> >> msg.setAddress("amqps://owner:**[email protected].** >> windows.net:5671/queue<http://owner:[email protected]:5671/queue> >> "); >> > > I have no experience with Azure, but the exception would suggest that > namespace.servicebus.windows.**net<http://namespace.servicebus.windows.net>could > not be resolved. Have you checked whether that is the case (e.g. with > nslookup or by pinging or telnetting)? > > One other point is that I don't believe the Java messenger handles 'amqps' > yet, i.e. it does not enable SSL. I would expect that to result in > different errors/exceptions though. > > > >> messenger.put(msg); >> messenger.send(); >> .. >> >> Thanks. >> >> >> >> -- >> View this message in context: http://qpid.2158936.n2.nabble.** >> com/Qpid-Proton-Unsolved-**Address-Exception-for-Azure-** >> Service-Bus-tp7593622.html<http://qpid.2158936.n2.nabble.com/Qpid-Proton-Unsolved-Address-Exception-for-Azure-Service-Bus-tp7593622.html> >> Sent from the Apache Qpid users mailing list archive at Nabble.com. >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: >> [email protected].**org<[email protected]> >> For additional commands, e-mail: [email protected] >> >> > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > [email protected].**org<[email protected]> > For additional commands, e-mail: [email protected] > > -- Sincerely, Khanh S. Bui
