mirror of https://github.com/apache/activemq.git
applied patches for http://issues.apache.org/activemq/browse/AMQ-1057
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@476058 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
69e5439718
commit
c1d82a43c6
|
@ -90,7 +90,7 @@ public class ConsumerTool implements MessageListener, ExceptionListener {
|
||||||
connection.setExceptionListener(this);
|
connection.setExceptionListener(this);
|
||||||
connection.start();
|
connection.start();
|
||||||
|
|
||||||
Session session = connection.createSession(transacted, ackMode);
|
session = connection.createSession(transacted, ackMode);
|
||||||
if (topic) {
|
if (topic) {
|
||||||
destination = session.createTopic(subject);
|
destination = session.createTopic(subject);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -93,13 +93,13 @@ public class RequesterTool {
|
||||||
// And the Destinations..
|
// And the Destinations..
|
||||||
if (topic) {
|
if (topic) {
|
||||||
destination = session.createTopic(subject);
|
destination = session.createTopic(subject);
|
||||||
if( replySubject==null )
|
if( replySubject==null || replySubject.equals("") )
|
||||||
replyDest = session.createTemporaryTopic();
|
replyDest = session.createTemporaryTopic();
|
||||||
else
|
else
|
||||||
replyDest = session.createTopic(replySubject);
|
replyDest = session.createTopic(replySubject);
|
||||||
} else {
|
} else {
|
||||||
destination = session.createQueue(subject);
|
destination = session.createQueue(subject);
|
||||||
if( replySubject==null )
|
if( replySubject==null || replySubject.equals("") )
|
||||||
replyDest = session.createTemporaryQueue();
|
replyDest = session.createTemporaryQueue();
|
||||||
else
|
else
|
||||||
replyDest = session.createQueue(replySubject);
|
replyDest = session.createQueue(replySubject);
|
||||||
|
|
Loading…
Reference in New Issue