I have something like the following code in the receiver. I am currently dealing with 1000's of messages in perhaps less than 30 seconds. I read in the broker manual that by default only one message is extracted by the receiver from the broker however using prefetch I could receive more than one message at a time. How can I implement prefetch in my code any suggestions. I read that setting the count value helps. Is there a way to find out how many messages the receiver pulls out during each fetch from the broker? How can I optimize my receiver to receive from queues. Any suggestions would be appreciated.
C# receiver code. while (receiver_n.Fetch(ref message_n, timeout_n)) { try { message_n.GetContent(content); session.Acknowledge(false); //Not Synchronous } catch (Exception ex) {/*Exception*/} }