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