JMS Message is delivered to queue with JMSDeliveryMode Non Persistent

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

JMS Message is delivered to queue with JMSDeliveryMode Non Persistent

In Artemis 1.5.4 Have the following server broker.xml where I divert messages from a MQTT topic to a JMS queue, both local.
How can I make sure that that JMS message will be delivered with JMSDeliveryMode=persistent?
At this moment it is being automatically set to Non-Persistent.

<?xml version='1.0'?>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.

<configuration xmlns="urn:activemq"
               xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd">

   <jms xmlns="urn:activemq:jms">
      <queue name="DLQ"/>
      <queue name="ExpiryQueue"/>
	  <queue name="ingest01"/>


   <core xmlns="urn:activemq:core">



      <!-- this could be ASYNCIO or NIO








        You can specify the NIC you want to use to verify if the network

        Use this to use an HTTP server to validate the network
         <network-check-URL-list></network-check-URL-list> -->

      <!-- <network-check-period>10000</network-check-period> -->
      <!-- <network-check-timeout>1000</network-check-timeout> -->

      <!-- this is a comma separated list, no spaces, just DNS or IPs
           it should accept IPV6

           Warning: Make sure you understand your network topology as this is meant to validate if your network is valid.
                    Using IPs that could eventually disappear or be partially visible may defeat the purpose.
                    You can use a list of multiple IPs, and if any successful ping will make the server OK to continue running -->
      <!-- <network-check-list></network-check-list> -->

      <!-- use this to customize the ping used for ipv4 addresses -->
      <!-- <network-check-ping-command>ping -c 1 -t %d %s</network-check-ping-command> -->

      <!-- use this to customize the ping used for ipv6 addresses -->
      <!-- <network-check-ping6-command>ping6 -c 1 %2$s</network-check-ping6-command> -->

       This value was determined through a calculation.
       Your system could perform 0.21 writes per millisecond
       on the current journal configuration.
       That translates as a sync write every 4828000 nanoseconds

      <!-- how often we are looking for how many bytes are being used on the disk in ms -->

      <!-- once the disk hits this limit the system will block, or close the connection in certain protocols
           that won't support flow control. -->

      <!-- the system will enter into page mode once you hit this limit.
           This is an estimate in bytes of how much the messages are using in memory -->

         <!-- Acceptor for every supported protocol -->
         <acceptor name="artemis">tcp://;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,OPENWIRE</acceptor>

         <!-- AMQP Acceptor.  Listens on default AMQP port for AMQP traffic.-->
         <acceptor name="amqp">tcp://</acceptor>

         <!-- STOMP Acceptor. -->
         <acceptor name="stomp">tcp://</acceptor>

         <!-- HornetQ Compatibility Acceptor.  Enables HornetQ Core and STOMP for legacy HornetQ clients. -->
         <acceptor name="hornetq">tcp://,STOMP</acceptor>

         <!-- MQTT Acceptor -->
         <acceptor name="mqtt">tcp://</acceptor>


         <security-setting match="#">
            <permission type="createNonDurableQueue" roles="admin"/>
            <permission type="deleteNonDurableQueue" roles="admin"/>
            <permission type="createDurableQueue" roles="admin"/>
            <permission type="deleteDurableQueue" roles="admin"/>
            <permission type="consume" roles="admin"/>
            <permission type="browse" roles="admin"/>
            <permission type="send" roles="admin"/>
            <!-- we need this otherwise ./artemis data imp wouldn't work -->
            <permission type="manage" roles="admin"/>

         <!--default for catch all-->
         <address-setting match="#">
            <!-- with -1 only the global-max-size is in use for limiting -->
<divert name="geog1-divert">