I'm trying to deploy in EAP 6.3 a SAR module with mbean which queries DB on startup. It accesses SessionFactory via JNDI.
The problem is that JPA takes quite long time to startup and mbean starts before SessionFactory is put in JNDI.
What is a correct syntax to set <depends> barier for mbean to wait for persistence unit is started?
Retrieving data ...