I have a @Singleton bean installed on WildFly.
Inside the bean I have an @PostConstruct method.
Is it possible to restart | shutdown the bean from inside of the bean?
For example the initialisation of the bean with the call of the post construct method
can take a long time. During this time the admin web interface of wildfly is blocked.
I would prefer to make the initialsation in an extra thread, which is not blocking any other applications.
And if something is going wrong during the initialisation, I want to shutdown the bean.
Retrieving data ...