0 Replies Latest reply on Sep 11, 2014 12:04 PM by Dzmitry Shaparau

    MBean dependency to persistence unit

    Dzmitry Shaparau Newbie

      Dear All,

       

      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?