1 Reply Latest reply on Feb 24, 2015 5:24 AM by ataylor

    Hornetq get message by correlation id functionality.

    skorob2000

      Hello,

      I have process which reads temporary queue. The idea that it gets message by correlation id.

      It works fine, if the queue contains less than 50000 messages.

      If it contains more messages, the process can take till 10000 seconds.

      And this is not good. You understand me

      Does hornet provide the better way to read messages by correllation id.

      Now I use Hornet JMS. I don't use spring things at all.

      Thank you in advance.

        • 1. Re: Hornetq get message by correlation id functionality.
          ataylor

          if you have a queue with n messages in then to find a specific message you will need to traverse the queue until you find it, the more messages the longer this will take and if you add paging into the equation it will take even longer.

           

          If you want to look up an object by a key then you should really be using a database.