Re: How to set subject in Java spout?

2011-08-03 Thread Pavel Moravec
Hi Rajith and Alan, thanks for responses. I was aware of the address syntax but forgot to mention it in my email. My question was rather to -P parameter usage and its syntax in general, that Rajith answered. Kind regards, Pavel - Original Message - From: "Rajith Attapattu" To: users@q

Re: How to set subject in Java spout?

2011-08-03 Thread Rajith Attapattu
In addition to what Alan suggested (which is the preferred way) you can do the following as well. java -cp $QP org.apache.qpid.example.Spout -P=qpid.subject=hello "demoQueue" If you type -h or --help, it will tell you how to specify these properties. regards, Rajith On Wed, Aug 3, 2011 at 9:34

Re: How to set subject in Java spout?

2011-08-03 Thread Alan Conway
On 08/03/2011 06:47 AM, Pavel Moravec wrote: Hi all, comparing C++ and Java spout programs, I realized I am unable to set subject of a message using Java Spout program. C++ has syntax: ./spout -b localhost:5672 -c 1 -P '{subject:Some_subject}' testQueue but trying the same in Java client does

How to set subject in Java spout?

2011-08-03 Thread Pavel Moravec
Hi all, comparing C++ and Java spout programs, I realized I am unable to set subject of a message using Java Spout program. C++ has syntax: ./spout -b localhost:5672 -c 1 -P '{subject:Some_subject}' testQueue but trying the same in Java client does not work: # cd /usr/share/doc/qpid-java-0