6 Replies Latest reply on Jan 30, 2019 4:13 AM by gandhirajan

    Does CDI container takes care of calling event observer method on server stop or crash

    gandhirajan

      Hi, We are using CDI events that gets fired on DB persist transaction success and an event observer listens to the event to send JMS message on successful transaction.

       

      The question I have is what happens when the CDI event is fired but the server crashed or restarted before the observer process the event? Will CDI container internally handle this scenario to invoke the observer again on Jboss restart automatically?

       

      If not, Please suggest me an approach to handle this scenario. Also do let me know if CDI container/JBoss provides some handle to resolve this problem.

       

      Regards,

      Gandhi.