Re: ActiveMQ / configure queues

2023-03-31 Thread Ephemeris Lappis
Hello. I guess that "zeroExpirationOverride" could force the expiration on messages, but it seems to apply to all queues/topics, right ? Is there any way to limit the plugin to few queues only ? Thanks. Regards. Ephemeris Lappis Le 31/03/2023 à 20:13, Matt Pavlovich a écrit : Hello

Re: ActiveMQ / configure queues

2023-03-31 Thread Matt Pavlovich
Hello Ephemeris- I think this would do it for you: https://activemq.apache.org/timestampplugin Thanks, Matt Pavlovich > On Mar 31, 2023, at 10:02 AM, Ephemeris Lappis > wrote: > > OK. Is there a chance I find a similar configuration for the classic version ? > I guess that for DLQ I can set

Re: ActiveMQ / Selector on message age

2023-03-31 Thread Matt Pavlovich
Hi Ephemeris- I think you’d want to reverse that logic.. 'JMSTimestamp <= 125252…' <— this needs to be a long value of now() - 360 or whatever calculation you are looking for. Selector examples: https://timjansen.github.io/jarfiller/guide/jms/selectors.xhtml Thanks, Matt Pavlovich >

Re: ActiveMQ / Selector on message age

2023-03-31 Thread Ephemeris Lappis
Hello. Have you any example of working selectors to compute the age from the JMSTimestamp, if it's possible, something like "JMSTimestamp + 360 > now()" ? Thanks again. Regards. Le ven. 31 mars 2023 à 16:43, Matt Pavlovich a écrit : > > Hello Ephemeris- > > Yes, simply use the

Re: ActiveMQ / configure queues

2023-03-31 Thread Ephemeris Lappis
OK. Is there a chance I find a similar configuration for the classic version ? I guess that for DLQ I can set multiple policy entries with distinct strategies. Reading the XML configuration reference, for now I didn't find any policy to force message expiration (time to live) for some queues :

Re: ActiveMQ / Selector on message age

2023-03-31 Thread Matt Pavlovich
Hello Ephemeris- Yes, simply use the JMSTimestamp header as the field in your selector query. Thanks, -Matt > On Mar 31, 2023, at 4:28 AM, Ephemeris Lappis > wrote: > > Hello. > > We need to consume messages from some queues (using Camel JMS > component) only when messages are older than a

Re: ActiveMQ / configure queues

2023-03-31 Thread Timothy Bish
On 3/31/23 10:22, Ephemeris Lappis wrote: Hello. Thanks. I'm going to have a look at these configuration items. Do you confirm this also work for "classic" ActiveMQ (we do not use Artemis) ? The configuration for ActiveMQ Classic and ActiveMQ Artemis are not interchangeable. Regards. Le

Re: ActiveMQ / configure queues

2023-03-31 Thread Ephemeris Lappis
Hello. Thanks. I'm going to have a look at these configuration items. Do you confirm this also work for "classic" ActiveMQ (we do not use Artemis) ? Regards. Le ven. 31 mars 2023 à 15:04, Dondorp, Erwin a écrit : > > See >

RE: ActiveMQ / configure queues

2023-03-31 Thread Dondorp, Erwin
But an even better solution is to configure NO DLQ for such address. Again in : e. -Original Message- From: Dondorp, Erwin Sent: vrijdag 31 maart 2023 15:04 To: users@activemq.apache.org Subject: RE: ActiveMQ / configure queues See

RE: ActiveMQ / configure queues

2023-03-31 Thread Dondorp, Erwin
See https://activemq.apache.org/components/artemis/documentation/latest/message-expiry.html There are the address-parameters: min-expiry-delay and max-expiry-delay -Original Message- From: Ephemeris Lappis Sent: vrijdag 31 maart 2023 15:01 To: users@activemq.apache.org Subject:

ActiveMQ / configure queues

2023-03-31 Thread Ephemeris Lappis
Hello. Is there any way to configure queues on the server side with specific settings like "time to live" for example ? The same way, I'd like to enable or disable DLQ for some queues. Our XML configuration already uses policies like : Can I set similar policies to exclude DLQ for queues

ActiveMQ / Selector on message age

2023-03-31 Thread Ephemeris Lappis
Hello. We need to consume messages from some queues (using Camel JMS component) only when messages are older than a given number of hours or days. I don't find any example of selector to filter messages this way. Any help on that ? Thanks in advance. Regards.