title: Failed to configure custom ActiveMQ broker in TomEE
body: <p>Until now I used the default ActiveMQ configuration in TomEE. Now I would like to turn on scheduler support, so I added these things to tomee.xml:</p>
  
  <pre><code>&lt;Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter"&gt;
      BrokerXmlConfig = broker:(tcp://127.0.0.1:61616)?usekahadb=true&amp;amp;persistent=true&amp;amp;schedulerSupport=true
  &lt;/Resource&gt;
  
  &lt;Resource id="MyJmsConnectionFactory" type="javax.jms.ConnectionFactory"&gt;
      ResourceAdapter = MyJmsResourceAdapter
  &lt;/Resource&gt;
  </code></pre>
  
  <p>But I get these error messages:</p>
  
  <blockquote>
    <p>Database activemq-data/localhost/scheduler/lock is locked... waiting
    10 seconds for the database to be unlocked. Reason:
    java.io.IOException: Failed to create directory
    'activemq-data/localhost/scheduler'</p>
  </blockquote>
  
  <p>Can anyone help me what to do? Every documentation that I found about configuring ActiveMQ inside TomEE is sadly poor, and I cannot figure out how to turn on scheduler support <strong>inside TomEE</strong>.</p>