[ 
https://issues.apache.org/jira/browse/ARTEMIS-4793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892265#comment-17892265
 ] 

Justin Bertram commented on ARTEMIS-4793:
-----------------------------------------

The code in question here is creating a queue for a JMS _topic_ subscription so 
it's valid to not set the {{autoCreated}} flag. This situation is actually 
dealt with directly in [the documentation which 
states|https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html#address-settings]:
{quote}
Automatic queue creation is for queues that _would not otherwise be created 
during normal operation_. For example, when a remote application creates a 
consumer on a JMS topic then a queue will be created representing that 
subscription as described in the [JMS-to-core mapping 
chapter|https://activemq.apache.org/components/artemis/documentation/latest/jms-core-mapping.html].
 This queue will be created regardless of how auto-create-queues is configured 
because it is required for _normal operation_. {quote}
Additionally, you'll note that the code is calling {{setTemporary(true)}} which 
means as soon as the connection is destroyed the queue should be removed.

> OpenWire auto-created consumer queues are not marked as auto-created
> --------------------------------------------------------------------
>
>                 Key: ARTEMIS-4793
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4793
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: OpenWire
>            Reporter: Josh Byster
>            Priority: Minor
>
> I noticed that in AMQConsumer line 256:
> {code:java}
>          session.getCoreSession().createQueue(new 
> QueueConfiguration(queueName).setAddress(address).setFilterString(selector).setDurable(false).setTemporary(true).setInternal(internalAddress));
> {code}
> We do not set the autoCreated flag, which does not make it eligible for 
> deletion automatically unless {{auto-delete-created-queues}} is set to true 
> (easy workaround, but maybe not technically necessary).
> Effectively we do not define any queues on startup and none of them end up 
> being marked as auto-created for this reason.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to