Results 1 to 3 of 3

Thread: Queue Reference

  1. #1
    Join Date
    Jul 2011
    Posts
    8

    Default Queue Reference

    Hi,

    I am trying to change the gemfire supported implementation to a rabbitMQ supported implementation with the help of Spring AMQP 1.0.0.RC2.

    My receiver has created a "sampleQueue" and is listening there. Now to send a message to that queue from the sender's side, I need to create an exchange "sampleExchange" and bind it to "sampleQueue". So that my receiver gets the message.

    However, for binding, I need to have a 'queue' reference
    Code:
    (amqpAdmin.declareBinding(BindingBuilder.bind(queue).to(exchange).with(ROUTING_KEY));)
    but I only have the name of the queue ("sampleQueue"). Is there a way to get the queue reference by just knowing its name ?

  2. #2
    Join Date
    Jul 2011
    Posts
    8

    Default

    Can the routing key help, right now I am using "" as the routing key.
    Last edited by gargkshitiz; Aug 2nd, 2011 at 11:29 AM.

  3. #3
    Join Date
    Jul 2011
    Posts
    8

    Default

    I have worked it out . For a P2P communication, there is no need to create an exchange and bind "sampleQueue" to it. Just get a RabbitTemplate with a routing key="sampleQueue" and that's done. Beautiful, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •