Skip to Content
1
Aug 30, 2023 at 09:27 AM

How to detect if system is still initializing

145 Views Last edit Aug 30, 2023 at 10:09 AM 2 rev

Hi All,

How can we detect that the system is still initializing?

We have some after save listener that we don't want to be executed when the system is initialized.

I'm trying to use this, but it didn't work because it always return true

Registry.getCurrentTenantNoFallback().getJaloConnection().isSystemInitialized()

I'm trying to set session attribute in InitialDataSystemSetup and in the after save listener I would check if that attribute is null or not, and the result is always null.

So, how can we detect that the system is initializing?