Hi

We are using activemq artemis 2.31.2 as a container managed by 
docker-compose/podman. For persistence we have to use JDBC. If, for any reason 
(eventually a short network unavailablility), artemis fails to get the JDBC 
connection it executes a graceful shutdown and exists with 0 (SUCCESS) instead 
of 1 (FAILURE). Therefore docker-compose does not restart the artemis container 
though we have defined the restart policy to restart the container in case of 
failure.

Is there any way to tell artemis to exit with a failure exit code in case it 
detects a fatal error like not getting a JDBC connection?

Regards
Reto

----------------------------
Profidata AG
Reto Urfer
Senior Software Engineer

Bändliweg 30
8048 Zürich
Switzerland
+41 44 736 47 47
reto.ur...@profidata.com<mailto:reto.ur...@profidata.com>
www.profidata.com<http://www.profidata.com/>
----------------------------
Profidata Group
Investment Management Solutions
----------------------------

CONFIDENTIALITY NOTICE: If you are
not the intended recipient, please notify the
sender immediately and delete this e-mail.
Notice concerning e-mail data 
protection<https://www.profidatagroup.com/disclaimer#e-mail-disclaimer>

Reply via email to