This commit is contained in:
gtully 2014-01-24 13:31:44 +00:00
parent 770539d530
commit 95d20e5b47
2 changed files with 1 additions and 8 deletions

View File

@ -86,7 +86,7 @@ public class PooledProducer implements MessageProducer {
// just in case let only one thread send at once
synchronized (messageProducer) {
if (anonymous && !this.destination.equals(destination)) {
if (anonymous && this.destination != null && !this.destination.equals(destination)) {
throw new UnsupportedOperationException("This producer can only send messages to: " + this.destination);
}

View File

@ -44,11 +44,4 @@ public class JmsSendReceiveTwoConnectionsWithSenderUsingPoolTest extends JmsTopi
super.tearDown();
senderConnectionFactory.stop();
}
@Override // TODO remove this method when AMQ-4991 is fixed
@Ignore("See AMQ-4991") // Ignore doesn't really work here with JUnit3 runner, just adding as documentation
public void testSendReceive() throws Exception {
//super.testSendReceive();
}
}