Re: How to set subject in Java spout?

2011-08-03 Thread Pavel Moravec
To: users@qpid.apache.org Sent: Wednesday, August 3, 2011 5:44:19 PM Subject: Re: How to set subject in Java spout? 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"

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