mirror of
https://github.com/apache/activemq.git
synced 2025-02-09 11:35:36 +00:00
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,11 +81,17 @@ 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);
|
||||
for(Iterator i=subscriptionMapByLocalId.values().iterator();i.hasNext();){
|
||||
|
Loading…
x
Reference in New Issue
Block a user