mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@392992 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9c9343c9dd
commit
c7be305873
|
@ -54,7 +54,7 @@ public class DurableConduitBridge extends ConduitBridge{
|
|||
if(isPermissableDestination(dest) && !doesConsumerExist(dest)){
|
||||
DemandSubscription sub=createDemandSubscription(dest);
|
||||
if(dest.isTopic()){
|
||||
sub.getLocalInfo().setSubcriptionName(getLocalBrokerName()+"_"+name);
|
||||
sub.getLocalInfo().setSubcriptionName(getSubscriberName(dest));
|
||||
}
|
||||
try{
|
||||
addSubscription(sub);
|
||||
|
@ -81,10 +81,16 @@ public class DurableConduitBridge extends ConduitBridge{
|
|||
}
|
||||
if(info.isDurable()){
|
||||
// set the subscriber name to something reproducible
|
||||
info.setSubcriptionName(getLocalBrokerName());
|
||||
|
||||
info.setSubcriptionName(getSubscriberName(info.getDestination()));
|
||||
}
|
||||
return doCreateDemandSubscription(info);
|
||||
}
|
||||
|
||||
protected String getSubscriberName(ActiveMQDestination dest){
|
||||
String subscriberName = getLocalBrokerName()+"_"+dest.getPhysicalName();
|
||||
return subscriberName;
|
||||
}
|
||||
|
||||
protected boolean doesConsumerExist(ActiveMQDestination dest){
|
||||
DestinationFilter filter=DestinationFilter.parseFilter(dest);
|
||||
|
|
Loading…
Reference in New Issue