qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Welchlin <andreas.welch...@comyno.com>
Subject Java Qpid 0.28 amqp1.0 JMS
Date Fri, 18 Jul 2014 12:11:28 GMT
Hi List,

when moving a JMS program to the amqp 1.0 the following needs to be 
changed (I just want to mention this on the mailing list because it cost 
me some hours to find out).

If you used an older version of qpid-all.jar your property file may 
contain someting like:

     destination.topicExchange = someTopicName

If you change your program so that it uses 
qpid-java-amqp-1-0-clien-jms-0.28 then you will get an exception like:

java.lang.NullPointerException
     at 
org.apache.qpid.amqp_1_0.jms.impl.MessageImpl.join(MessageImpl.java:1350)
     at 
org.apache.qpid.amqp_1_0.jms.impl.MessageImpl.setJMSDestination(MessageImpl.java:240)
     at 
org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.send(MessageProducerImpl.java:271)
     at 
org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.send(MessageProducerImpl.java:240)


Therefore you need to change the property file like this:

     topic.topicExchange = someTopicName

Or if it is a queue:

     queue.QueueName = someQueueName

Then it works fine.

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message