Silverpeas/Silverpeas-Core — pull request #186 by mmoqui (2012-06-05 20:29:35+00:00)
Title: Bug 3323

Improve the JMS implementation of our Silverpeas Notification API:

- reuse both the JMS session and connection instead of creating a session each time it is needed.
- use now the durable subscription instead of simple subscription. Durable subscription are living over connections life.
- add a retry mechanism with the publishing/subscribing so that the connection with JMS is reestablished when it turns out to be broken.

The retry mechanism is implemented by a simple class, com.silverpeas.util.ExecutionAttempts, that can be reused for any jobs requiring to be decorated by a retry policy.