title: WildFly 10.1 Failed to create journal-datasource to store message
body: <p>I'm using an old version of WildFly (10.1) which uses the ActiveMQ Artemis that comes with it, and I was trying to switch the store method from a store in the file system to store in the database (and I know that the ActiveMQ Artemis default way to store the is better).</p>
  <p>So I'm using this configuration for ActiveMQ Artemis:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;subsystem xmlns=&quot;urn:jboss:domain:messaging-activemq:1.0&quot;&gt;
       &lt;server name=&quot;default&quot;&gt;
          &lt;security-setting name=&quot;#&quot;&gt;
              &lt;role name=&quot;guest&quot; send=&quot;true&quot; consume=&quot;true&quot; create-non-durable-queue=&quot;true&quot; delete-non-durable-queue=&quot;true&quot;/&gt;
          &lt;/security-setting&gt;
          &lt;address-setting name=&quot;#&quot; dead-letter-address=&quot;jms.queue.DLQ&quot; expiry-address=&quot;jms.queue.ExpiryQueue&quot; max-size-bytes=&quot;10485760&quot; page-size-bytes=&quot;2097152&quot; message-counter-history-day-limit=&quot;10&quot;/&gt;
          &lt;http-connector name=&quot;http-connector&quot; socket-binding=&quot;http&quot; endpoint=&quot;http-acceptor&quot;/&gt;
          &lt;http-connector name=&quot;http-connector-throughput&quot; socket-binding=&quot;http&quot; endpoint=&quot;http-acceptor-throughput&quot;&gt;
              &lt;param name=&quot;batch-delay&quot; value=&quot;50&quot;/&gt;
          &lt;/http-connector&gt;
          &lt;in-vm-connector name=&quot;in-vm&quot; server-id=&quot;0&quot;/&gt;
          &lt;http-acceptor name=&quot;http-acceptor&quot; http-listener=&quot;default&quot;/&gt;
          &lt;http-acceptor name=&quot;http-acceptor-throughput&quot; http-listener=&quot;default&quot;&gt;
              &lt;param name=&quot;batch-delay&quot; value=&quot;50&quot;/&gt;
              &lt;param name=&quot;direct-deliver&quot; value=&quot;false&quot;/&gt;
          &lt;/http-acceptor&gt;
          &lt;in-vm-acceptor name=&quot;in-vm&quot; server-id=&quot;0&quot;/&gt;
          &lt;jms-queue name=&quot;ExpiryQueue&quot; entries=&quot;java:/jms/queue/ExpiryQueue&quot;/&gt;
          &lt;jms-queue name=&quot;DLQ&quot; entries=&quot;java:/jms/queue/DLQ&quot;/&gt;
          &lt;connection-factory name=&quot;InVmConnectionFactory&quot; entries=&quot;java:/ConnectionFactory&quot; connectors=&quot;in-vm&quot;/&gt;
          &lt;connection-factory name=&quot;RemoteConnectionFactory&quot; connectors=&quot;http-connector&quot; entries=&quot;java:jboss/exported/jms/RemoteConnectionFactory&quot;/&gt;
          &lt;pooled-connection-factory name=&quot;activemq-ra&quot; entries=&quot;java:/JmsXA java:jboss/DefaultJMSConnectionFactory&quot; connectors=&quot;in-vm&quot; transaction=&quot;xa&quot;/&gt;
      &lt;/server&gt;
  &lt;/subsystem&gt;
  </code></pre>
  <p>and than using <code>jboss-cli.bat</code> (I'm using Windows), I run this command:</p>
  <pre><code>/subsystem=messaging-activemq/server=vmvanz:write-attribute(name=journal-datasource, value=ExampleDS)
  </code></pre>
  <p>And I get this error:</p>
  <pre><code>{
  &quot;outcome&quot; =&gt; &quot;failed&quot;,
  &quot;failure-description&quot; =&gt; &quot;WFLYCTL0201: Unknown attribute 'journal-datasource'&quot;,
  &quot;rolled-back&quot; =&gt; true
  }
  </code></pre>
  <p>I try the same command in WildFly 14 and work. I read the <a href="https://docs.wildfly.org/13/Admin_Guide.html#Messaging_JDBC_Store_for_Messaging_Journal" rel="nofollow noreferrer">documentation from 10.1</a> and it show the same command line.</p>
  <p>Does someone knows if this is a problem from this version or know some other way to configure?</p>