I created a queue using the command:

>> ./qpid-config add queue test_queue

Then I get something like this

./qpid-config exchanges -r



*Exchange '' (direct)    bind [bd2dfd48-6f3f-4807-b591-df543a306403:0.0] =>
bd2dfd48-6f3f-4807-b591-df543a306403:0.0    bind [qservice_queue] =>
qservice_queue    bind [test_queue] => test_queue*
Exchange 'amq.direct' (direct)
Exchange 'amq.fanout' (fanout)
Exchange 'amq.match' (headers)
Exchange 'amq.topic' (topic)
Exchange 'qmf.default.direct' (direct)
Exchange 'qmf.default.topic' (topic)
    bind [direct.09701f02-2092-4752-b7e8-7a4ba976fbc9] =>
bd2dfd48-6f3f-4807-b591-df543a306403:0.0
Exchange 'qpid.management' (topic)
Exchange 'qservice' (topic)
    bind [*.test] => qservice_queue
    bind [testbind] => qservice_queue

My question is how can I access a default exchnage , say if I wanted to do
something like this

>>./spout ' '/test_queue SOME_TEST_CONTENT
  File "./spout", line 101, in <module>
    snd = ssn.sender(addr)
  File "<string>", line 6, in sender
  File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line
600, in sender
    raise e
qpid.messaging.exceptions.MalformedAddress: unexpected token SLASH(/)
line:1,1: /test_queue

How can I reference the default exchange as it has a queue called
test_queue bound to it by the id test_queue ?  I tried doing this (I also
want to attach a subject to it with the id test_queue)

 >>./spout ' '/test_queue SOME_TEST_CONTENT

but that does not work. Any suggestions ?

Reply via email to