You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Shi Lei (JIRA)" <ji...@apache.org> on 2014/11/28 06:34:12 UTC

[jira] [Created] (AMQ-5461) Locker is not released after starting fails

Shi Lei created AMQ-5461:
----------------------------

             Summary: Locker is not released after starting fails 
                 Key: AMQ-5461
                 URL: https://issues.apache.org/jira/browse/AMQ-5461
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.10.0
         Environment: JDK7, Windows 7
            Reporter: Shi Lei



How to produce, 

1, Configure activemq 
<amq:broker start="false" id="broker" brokerName="testBroker" startAsync="true">
    <amq:managementContext>
      <amq:managementContext createConnector="false"/>
    </amq:managementContext>
    <amq:ioExceptionHandler>
      <amq:jDBCIOExceptionHandler resumeCheckSleepPeriod="7000"/>
    </amq:ioExceptionHandler>
    <amq:persistenceAdapter>
      <amq:jdbcPersistenceAdapter lockKeepAlivePeriod="5000" dataSource="#ds" dataDirectory="activemq-data">
        <amq:locker>
          <amq:lease-database-locker maxAllowableDiffFromDBTime="500" lockAcquireSleepInterval="13000"/>
        </amq:locker>
      </amq:jdbcPersistenceAdapter>
    </amq:persistenceAdapter>
    <amq:transportConnectors>
      <amq:transportConnector name="default" uri="tcp://localhost:8093"/>
    </amq:transportConnectors>
  </amq:broker>

2, start another program, ex. tomcat to listen at port 8093

3, BrokerService brokerService = BrokerFactory.createBroker("xbean:ActiveMQ.xml");
brokerService.start();

4, Check table activemq_lock
you can see activemq_lock.broker_name is "testBroker"
and activemq_lock.time is updated every 5 seconds

But brokerService.isStarted() is false.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)