qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Khan <rajeshkhan...@gmail.com>
Subject LVQ message in C# - question
Date Mon, 24 Dec 2012 17:46:08 GMT
I am trying out a last value queue and I always seem to get just one value
when I am actually sending two values (both with different values having
the same header).
It looks like I am not using it properly. The example in the manual is for
python so its not really helping me

Here is my code for the sender in C#

            Connection connection = new Connection("localhost:5672");
            Session sess = connection.CreateSession();
            Sender sender = sess.CreateSender("prices;{create:always,

            Message msga = new Message();
            msga.Properties["ticker"] = "NYSE";

            Message msgb = new Message();
            msgb.Properties["ticker"] = "TTSE";


     *Now the code for my receiver is *
     Receiver receiver = sess.CreateReceiver("prices;{mode:browse}");
      while (receiver.Fetch(ref msg, timeout))
                String a = msg.GetContent();
            }//end while

My question is why am i just receiving one value only even though I have
two different values attached to the same key (i.e) NYSE and TTSE ?
Am i doing something wrong here ? or will I have to create a separate LV
queue for each symbol ?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message