mirror of https://github.com/apache/activemq.git
AMQ-1489 revert previous attempted fix and add comment about possible workaround
git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-4.1@642553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e50a530a82
commit
331712964f
|
@ -28,14 +28,21 @@ import org.apache.activemq.util.IntrospectionSupport;
|
|||
import org.apache.activemq.util.URISupport;
|
||||
|
||||
public class MulticastDiscoveryAgentFactory extends DiscoveryAgentFactory {
|
||||
|
||||
|
||||
//See AMQ-1489. There's something wrong here but it is difficult to tell what.
|
||||
//It looks like to actually set the discovery URI you have to use something like
|
||||
//<transportConnector uri="..." discoveryUri="multicast://239.3.7.0:37000?discoveryURI=multicast://239.3.7.0:37000" />
|
||||
// or
|
||||
//<networkConnector name="..." uri="multicast://239.3.7.0:37000?discoveryURI=multicast://239.3.7.0:37000">
|
||||
protected DiscoveryAgent doCreateDiscoveryAgent(URI uri) throws IOException {
|
||||
try {
|
||||
|
||||
Map options = URISupport.parseParamters(uri);
|
||||
MulticastDiscoveryAgent rc = new MulticastDiscoveryAgent();
|
||||
rc.setDiscoveryURI(uri);
|
||||
rc.setGroup(uri.getHost());
|
||||
|
||||
// allow the discoveryURI to be set via a query argument on the URI
|
||||
// ?discoveryURI=someURI
|
||||
IntrospectionSupport.setProperties(rc, options);
|
||||
return rc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue