I facing problems with my JMS environment.
I created a JMSTemplate
, and it uses a ActiveMQSslConnectionFactory
(for security purposes).
Sometimes my server can be offline, or the host can be unreachable. In this cases my JMSTemplate cannot connect to the host and my message will not be delivered due to this exception:
org.springframework.jms.UncategorizedJmsException: Uncategorized exception occurred during JMS processing; nested exception is javax.jms.JMSException: Could not connect to broker URL: ssl://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connect
There is any resource/configuration to the JMSTemplate
or in the ConnectionFactory
to persist this unsent messages and resend them when the connection is reestablished?