Hi,
I am trying to implement a certain logic in my system in the following way:
- I have a sar that runs in an endless loop inside it's start method until a certain condition in the DB is met
- I have an ear that depends on this sar using the method described here - https://community.jboss.org/message/731832#731832 - adding a dependency on another deployment inside the EAR's jboss-deployment-structure.xml
I am trying to do it in this way and not work with interceptors inside my EAR since this logic is shared by another app.
now the situation is as follows -
- I see that both my EAR and my SAR are in a state of .isdeploying - which means that the endless loop in the SAR also pauses the completion of the deployment of the EAR
- but - inside my ear I have several timers and they are all being invoked in spite the fact that the deployment of the EAR is not complete
so I guess I am missing some step here in how to make the timers not start before the deployment is over - any ideas?