Roger is using RabbitMQ for the server side. As Rajith has already indicated, the Hello example wont work if you want to use 0-9-1 as the newer address syntax was only implemented for AMQP-0-10 section of the client, but I see from your other emails you have already figured out the BURL: prefix to use the other syntax (you can also use a system property to change the default syntax so you dont need the prefix: -Dqpid.dest_syntax=BURL). If you are only going to be connecting to RabbitMQ then you might also want to use -Dqpid.amqp.version=0-9-1 to restrict the initial connection attempt to AMQP 0-9-1 instead of letting it try 0-10 first and falling back to 0-9-1 when the broker indicates it doesnt support 0-10.
(I think the BindingURL example Rajith pasted below might actually be missing a / after amq.topic as well) Robbie On 21 August 2012 21:42, Rajith Attapattu <[email protected]> wrote: > The new syntax is the addressing format. > The old format is BURL which will work with 0-8/0-9 as well. > > The hello.properties is using the addressing format. > > If you want to use the older format, do the following > BURL:topic://amq.topic?routingkey='test' > The format is described here > https://cwiki.apache.org/qpid/bindingurlformat.html > > Are you using a qpid broker ? Is there a reason for using 0.9.1 > instead of 0-10 ? > > Regards, > > Rajith > > On Tue, Aug 21, 2012 at 4:10 PM, Roger <[email protected]> wrote: > > I'm running 0.9.1 broker. > > By new syntax I assume you mean binding url. > > Can you direct me to old syntax. > > > > Roger > > > > > > > > -- > > View this message in context: > http://qpid.2158936.n2.nabble.com/Java-example-Hello-java-throws-NPE-tp7581155p7581168.html > > Sent from the Apache Qpid users mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
