Hi everybody. I'm trying to export the messages from an ActiveMQ broker into an XML file in order to re-import them later in Artemis.
The ActiveMQ Console shows me some queues with persistent messages in it. The export using the ActiveMQ-cli-tools 0.2.0 seems to work but deliver always an empty file. Here the command : Exporter kahadb -f --source kahadb -t activemq_dump.xml Here the output : 2023-09-05 19:16:27,890 [main ] - INFO Exporter - Starting KahaDB store export 2023-09-05 19:16:28,207 [main ] - TRACE SharedFileLocker - keepAlive result: true, name: kahadb 2023-09-05 19:16:28,230 [main ] - TRACE Journal - Startup took: 17 ms 2023-09-05 19:16:28,256 [main ] - INFO MessageDatabase - KahaDB is version 6 2023-09-05 19:16:41,397 [main ] - DEBUG BTreeIndex - loading 2023-09-05 19:17:22,269 [main ] - INFO MessageDatabase - Recovering from the journal @1:19544 2023-09-05 19:17:22,271 [main ] - INFO MessageDatabase - Recovery replayed 2 operations from the journal in 0.019 seconds. 2023-09-05 20:20:00,274 [eckpoint Worker] - DEBUG MessageDatabase - Checkpoint started. 2023-09-05 20:20:00,577 [eckpoint Worker] - DEBUG MessageDatabase - Checkpoint done. 2023-09-05 20:20:03,589 [main ] - INFO KahaDBStore - Stopping async queue tasks 2023-09-05 20:20:03,590 [main ] - INFO KahaDBStore - Stopping async topic tasks 2023-09-05 20:20:03,591 [main ] - DEBUG ThreadPoolUtils - Forcing shutdown of ExecutorService: org.apache.activemq.store.kahadb.KahaDBStore$StoreTaskExecutor@73a8da0f[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 2023-09-05 20:20:03,591 [main ] - DEBUG ThreadPoolUtils - Forcing shutdown of ExecutorService: org.apache.activemq.store.kahadb.KahaDBStore$StoreTaskExecutor@50dfbc58[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 2023-09-05 20:20:03,592 [main ] - INFO KahaDBStore - Stopped KahaDB 2023-09-05 20:20:03,592 [main ] - DEBUG MessageDatabase - Checkpoint started. 2023-09-05 20:20:03,597 [main ] - DEBUG MessageDatabase - Checkpoint done. 2023-09-05 20:20:03,609 [main ] - DEBUG ThreadPoolUtils - Shutdown of ExecutorService: java.util.concurrent.ScheduledThreadPoolExecutor@5b67bb7e[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 127] is shutdown: true and terminated: true took: 0.001 seconds. 2023-09-05 20:20:03,610 [main ] - DEBUG ThreadPoolUtils - Shutdown of ExecutorService: java.util.concurrent.Executors$DelegatedScheduledExecutorService@82ea68c is shutdown: true and terminated: true took: 0.000 seconds. 2023-09-05 20:20:03,611 [main ] - INFO Exporter - Total export time: 3815718 ms Any hint what could be wrong ? Thanks in advance. Cheers, Patrick Brühlmann