I have added a JIRA bug report for this

https://issues.apache.org/jira/browse/AMQ-8102

Kind regards,

Martijn Brinkers

On Fri, 2020-12-11 at 14:42 +0100, Jean-Baptiste Onofre wrote:
> Hi,
> 
> It looks like a bug (or at least a relative folder).
> 
> Can you create a Jira, I will take a look ?
> 
> Thanks,
> Regards
> JB
> 
> > Le 11 déc. 2020 à 13:58, Martijn Brinkers (list) <
> > martijn.l...@gmail.com> a écrit :
> > 
> > I have embedded ActiveMQ inside a spring application.
> > 
> > The broker is configured in XML and I explicitly set the
> > dataDirectory:
> > 
> > <amq:broker useJmx="false" persistent="true"
> > dataDirectory="var/jms">
> >    <amq:transportConnectors>
> >        <amq:transportConnector uri="vm://localhost" />
> >    </amq:transportConnectors>
> > </amq:broker>
> > 
> > When I startup my application, the var/jms directory is created and
> > JMS
> > messages are stored when required. If however I shutdown my
> > application, an addtional directory "activemq-
> > data/localhost/KahaDB" is
> > created. This only happens if "useShutdownHook" is true (which is
> > the
> > default).
> > 
> > It looks like the shutdownhook tries to create the "data
> > directory" 
> > but ignores the configured value and therefore uses the default
> > data
> > directory name.
> > 
> > Is this a bug? Or did I make a configuration error?
> > 
> > Kind regards,
> > 
> > Martijn Brinkers
> > 
> 
> 

Reply via email to