activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Shcheklein (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3344) Daemon mode doesn't work for network connection
Date Wed, 01 Jun 2011 12:11:47 GMT
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

Mime
View raw message