ARTEMIS-1542 - AMQP message cluster-bridging fix
Fixing and issue where AMQP messages would lose their address when being sent accross a cluster-bridge.
This commit is contained in:
parent
e19d827da4
commit
fcfa4a5e63
|
@ -608,7 +608,11 @@ public class AMQPMessage extends RefCountMessage {
|
|||
|
||||
@Override
|
||||
public AMQPMessage setAddress(SimpleString address) {
|
||||
return setAddress(address.toString());
|
||||
if (address != null) {
|
||||
return setAddress(address.toString());
|
||||
} else {
|
||||
return setAddress((String) null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -182,7 +182,7 @@ public class ClusterConnectionBridge extends BridgeImpl {
|
|||
|
||||
messageCopy.putExtraBytesProperty(Message.HDR_ROUTE_TO_IDS, queueIds);
|
||||
|
||||
messageCopy = super.beforeForward(messageCopy, null);
|
||||
messageCopy = super.beforeForward(messageCopy, forwardingAddress);
|
||||
|
||||
return messageCopy;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue