1 2 Previous Next 15 Replies Latest reply on Jun 23, 2015 10:24 AM by gytis

    Periodic recovery thread in Java EE

    gytis

      Hello,

       

      I have been working on Compensations recovery when I ran into an issue with PeriodicRecovery. Since it is implemented as a subclass of Thread, it does not allow to access JNDI which is crucial for compensations implementation.

      I did some reading around this and apparently it is not recommended to manually manage threads in Java EE application and ManagedThreadFactory should be used instead. One of the drawbacks of manual thread management is lack of Java EE capabilities such as no JDNI.

       

      Since the change in PeriodicRecovery class would be invasive. I decided to first check here if there would be any objections. Or better any suggestions, if somebody has done anything around this issue.

       

      Thanks,

      Gytis

        1 2 Previous Next