something is trying to remove a queue, but it's not allowing it
because it had consumers.

Post the whole stack trace..



You should have used us...@activemq.apache.org though.


Also you didn't provide much information about what's happening...
I'm providing you an answer based on the little you posted.

On Thu, Jun 13, 2024 at 10:09 AM Tony Lewis <tle...@securelogix.com> wrote:
>
> I am having a problem with an MDB running on Wildfly 26.1.3. Artemis 2.33.
>
>
> This is the configuration for the MDB:
>
>
> @MessageDriven(activationConfig={
>
> @ActivationConfigProperty(propertyName="destinationLookup",  
> propertyValue="java:global/remoteContext/dataChannel")
>
> ,@ActivationConfigProperty(propertyName="destinationType", 
> propertyValue="javax.jms.Topic")
>
> ,@ActivationConfigProperty(propertyName="subscriptionDurability", 
> propertyValue ="Durable")
>
> ,@ActivationConfigProperty(propertyName="subscriptionName", 
> propertyValue="DataProcessor")
>
> ,@ActivationConfigProperty(propertyName = "shareSubscriptions", 
> propertyValue="true")
>
>
>
>
> And this is the broker.xml for artemis:
>
>
>          <address-setting match="dataChannel">
>
>             <dead-letter-address>DLQ</dead-letter-address>
>
>             <expiry-address>ExpiryQueue</expiry-address>
>
>             <max-delivery-attempts>-1</max-delivery-attempts>
>
>             <redelivery-delay>10000</redelivery-delay>
>
>             <max-redelivery-delay>100000</max-redelivery-delay>
>
>             <redelivery-delay-multiplier>1.5</redelivery-delay-multiplier>
>
>             <!-- with -1 only the global-max-size is in use for limiting -->
>
>             <max-size-bytes>-1</max-size-bytes>
>
>             
> <message-counter-history-day-limit>10</message-counter-history-day-limit>
>
>             <address-full-policy>PAGE</address-full-policy>
>
>             <auto-create-queues>true</auto-create-queues>
>
>             <auto-create-addresses>true</auto-create-addresses>
>
>             <auto-create-jms-queues>true</auto-create-jms-queues>
>
>             <auto-create-jms-topics>true</auto-create-jms-topics>
>
>          </address-setting>
>
> ...
>
>        <address name="dataChannel">
>
>            <multicast>
>
>              <queue name="DataProcessor" max-consumers="15">
>
>                <durable>true</durable>
>
>              </queue>
>
>            </multicast>
>
>          </address>
>
>
>
> This is the wildfly log on start up:
>
> ```
>
> 2024-06-13 13:31:17,442 ERROR 
> [org.apache.activemq.artemis.ra.ActiveMQRALogger] (default-threads - 1) 
> AMQ154003: Unable to reconnect 
> org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@e45ad389
>  destination=java:global/remoteContext/dataChannel 
> destinationType=javax.jms.Topic ack=Auto-acknowledge durable=true 
> clientID=null subscription=DataProcessor user=null maxSession=15): 
> ActiveMQIllegalStateException[errorType=ILLEGAL_STATE message=AMQ229025: 
> Cannot delete queue DataProcessor on binding DataProcessor - it has consumers 
> = org.apache.activemq.artemis.core.postoffice.impl.LocalQueueBinding]
>
> ```
>
>
> This identical code worked in Wildly 18 and Artemis 2.17.
>
> I have tried just about every combination that I can think of, but I think 
> I'm at my wit's end.
>
> If anyone can give me a hand here, I would greatly appreciate it.
>
>


-- 
Clebert Suconic

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@activemq.apache.org
For additional commands, e-mail: dev-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to