Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6191

Unable to communicate to Windows Azure using qpid messaging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • C++ Examples
    • None

    Description

      import sys
      from qpid.messaging import *

      if len(sys.argv)<2:
      broker = "**namespace**.servicebus.windows.net"
      else:
      broker = sys.argv[1]

      if len(sys.argv)<3:
      address = "*queuename*"
      else:
      address = sys.argv[2]

      connection = Connection(broker)
      connection.username = "owner"
      connection.password = "***passwordkey***"
      connection.protocol = "amqp1.0"
      try:
      connection.open()
      session = connection.session()

      sender = session.sender(address)
      receiver = session.receiver(address)

      sender.send(Message("Hello world!"));

      message = receiver.fetch()
      print message.content
      session.acknowledge()

      except MessagingError,m:
      print m

      connection.close()

      I have tried the above code to send message to Azure queue. But I got "client: 0-10, server: 0-0" when open a connection. Please anyone help me.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rajvael Rajkumar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: