Hi. Is there any way to set initialization dependencies for deployments and their beans?
We got SingletonStartup bean that used as CredentialsStore for datasource. Also we Implemented JAAS LoginModule that uses CredentialStore bean and provides credentials for DataSource.
The problem is that when Wildfly is restarting some Stateless bean from other deployment thy to acquire @PersistentContext, so the datasource initialization is happens to, but CredentialsStore bean is not ready yet, and LoginModule fails to provide credentials to DataSource.
SingleStartup bean deployed as simple jar. JAAS module is a part of static module.