Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createTemporaryQueue and createTemporaryTopic fails in non-transacted environment #10

Open
zapodot opened this issue Apr 17, 2013 · 2 comments

Comments

@zapodot
Copy link
Contributor

zapodot commented Apr 17, 2013

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
Copy link
Contributor Author

zapodot commented Apr 19, 2013

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

chirino added a commit that referenced this issue Apr 24, 2013
remove NPE by always calling getChannel().getServerAdaptor(). Solves #10
@zapodot
Copy link
Contributor Author

zapodot commented Apr 29, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant