fusesource / stompjms

The JMS interface to STOMP
Other
46 stars 27 forks source link

createTemporaryQueue and createTemporaryTopic fails in non-transacted environment #10

Open zapodot opened 11 years ago

zapodot commented 11 years ago

When implementing the Request-Reply pattern in a non-transacted environment using the following pattern:

final TextMessage textMessage = session.createTextMessage(content);
final MessageProducer producer = session.createProducer(destination);
final TemporaryQueue replyQueue = session.createTemporaryQueue();
textMessage.setJMSReplyTo(replyQueue);
textMessage.setJMSCorrelationID("my-very-unique-id");
producer.send(textMessage);
final MessageConsumer consumer = session.createConsumer(replyQueue, "JMSCorrelationID='my-very-unique-id'");

StompJmsSession fails with a NPE when invoking session.createTemporaryQueue due to a missing value for the field serverAdaptor (which is normally set by getChannel()).

zapodot commented 11 years ago

No that this has been merged into master, any chance of a patch release?

I have tested the SNAPSHOT version and it seems to work as intendend

zapodot commented 11 years ago

Any change of a new release version including this change, @chirino ?