Daemon mode doesn't work for network connection
-----------------------------------------------

                 Key: AMQ-3344
                 URL: https://issues.apache.org/jira/browse/AMQ-3344
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.4.2
         Environment: Windows, Linux
            Reporter: Ivan Shcheklein


The following code doesn't work:

{code}
BrokerService broker = new BrokerService();
broker.setBrokerName("local");
NetworkConnector nc = 
broker.addNetworkConnector("static:(failover:(tcp://localhost:61616?daemon=true))");
broker.start();
{code}

Error:

{code}
2011:06:01 15:09:03,648 [WARN ] 
org.apache.activemq.network.DiscoveryNetworkConnector - Could not connect to 
remote URI: failover:(tcp://localhost:61616: Invalid location: 
failover:(tcp://localhost:61616
{code}

It works fine without 'daemon=true' but connection thread is not daemon in that 
case and it prevents JVM finish.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to