My apologies, I just needed to try again, I got it working now. Thanks for
clearing everything up!

On Tue, Jan 25, 2022 at 12:39 PM Matthew Harris <harrisman1...@gmail.com>
wrote:

> That was definitely my point of confusion, thank you both for clearing it
> up.
>
> One quick follow up - what's the best way to analyze the contents of a
> "*.amq" journal file? I've tried various uses of the "artemis data ___"
> command, but I've never gotten the messages I've sent during a broker's
> session to show up when analyzing the journal files with any methods I've
> tried.
>
> On Tue, Jan 25, 2022 at 12:17 PM Justin Bertram <jbert...@apache.org>
> wrote:
>
>> In my opinion the documentation is not very clear on this point. It says:
>>
>>  > ActiveMQ Artemis will keep a copy of each generated journal file, up to
>> the configured retention period, at the unit chose. On the example above
>> the system would keep all the journal files up to 365 days.
>>
>> As far as I can tell "each generated journal" file is different from
>> "candidates for deletion."
>>
>> I will fix this soon if nobody else beats me to it first.
>>
>>
>> Justin
>>
>> On Tue, Jan 25, 2022 at 11:09 AM Gary Tully <gary.tu...@gmail.com> wrote:
>>
>> > It does not keep two copies of the data, is is more that journal files
>> > that are candidates for deletion are archived or retained rather than
>> > being deleted.
>> > if the data is still in the journal, then it won't exist in the
>> > retention folder.
>> >
>> > send and consume more messages such that compaction would cleanup and
>> > remove some journal data files, those will then appear in the
>> > retention folder.
>> >
>> > On Tue, 25 Jan 2022 at 16:33, Matthew Harris <harrisman1...@gmail.com>
>> > wrote:
>> > >
>> > > Hi,
>> > >
>> > > I'm trying to set up data persistence with an Artemis ActiveMQ broker,
>> > > version 2.20.0.
>> > >
>> > > In broker.xml, I use a "journal-retention-directory" tag to create a
>> > > copy of the journals generated by running the broker in the
>> > > "data/retention" directory for 365 days, as described in the
>> > documentation
>> > > here:
>> > >
>> >
>> https://activemq.apache.org/components/artemis/documentation/latest/persistence.html
>> > > .
>> > >
>> > > After I do this, I use "artemis producer" and "artemis consumer" to
>> send
>> > > and receive sample messages and populate the journal with data.
>> However,
>> > > once I stop the broker using "artemis stop" and move to the
>> > > "data/retention" directory, I see no copies of the journals.
>> > >
>> > > Am I missing something in the set up, or is there something else I
>> need
>> > to
>> > > do to enable retention? I've been troubleshooting this for a bit and
>> am a
>> > > little lost.
>> > >
>> > > Thanks,
>> > > Matthew
>> >
>> >
>>
>

Reply via email to