In looking at feasibility of migrating to Jmix 2.x I’m already at an odd stopper.
What is a Jmix 2.x equivalent to the old AppContextStartedEvent? Our app relies on this to create a bunch of things at startup if needed. It’s absolutely critical…
In looking at feasibility of migrating to Jmix 2.x I’m already at an odd stopper.
What is a Jmix 2.x equivalent to the old AppContextStartedEvent? Our app relies on this to create a bunch of things at startup if needed. It’s absolutely critical…
Hello. You can use Spring Boot standard events Application Events and Listeners:
An ApplicationStartedEvent is sent after the context has been refreshed but before any application and command-line runners have been called.
An ApplicationReadyEvent is sent after any application and command-line runners have been called.
Just add a listener method to your bean:
@EventListener
private void handleApplicationReadyEvent(ApplicationReadyEvent event) {
}