There are management methods on the QueueControl [1] that will allow you to
move messages. The methods are named "moveMessages" and there are several
versions which take different parameters. This one [2] is probably the
simplest.

You can invoke management methods programmatically via JMX (the broker
ships with an example in the examples/features/standard/jmx directory) or
even via HTTP using something like curl. Furthermore, you could set up
these invocations using cron or some other scheduling tool (e.g. Quartz if
you're using Java+JMX).

That said, it may be simpler to just configure a few diverts [3] so that
incoming messages are automatically sent from the different queues to the
queue you want.


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/javadocs/javadoc-latest/org/apache/activemq/artemis/api/core/management/QueueControl.html
[2]
https://activemq.apache.org/components/artemis/documentation/javadocs/javadoc-latest/org/apache/activemq/artemis/api/core/management/QueueControl.html#moveMessages(java.lang.String,java.lang.String)
[3]
https://activemq.apache.org/components/artemis/documentation/latest/diverts.html

On Tue, Jul 11, 2023 at 7:40 AM <lakni...@web.de> wrote:

>  > Hello,
> >
> > is there a way to move Datas from different queues
> (queue1_toSAP,queue2_toSAP, queue3_toSAP..) to one queue "toSAP" via
> schedule Task for example. We are using ActiveMQ Artemis.
> >
> > Thanks for response.
> >
> > Mit freundlichem Gruß
> > Omar Lakniti
> >
>
>

Reply via email to