0 Replies Latest reply on Apr 13, 2016 1:47 PM by skionsnow

    How to Delay MDB listener until application has initialized?

    skionsnow

      I have an application that reads data into a data grid cache at startup.  It also receives events from a Hornetq topic and dumps them into a Hornetq queue.  I would like for either the MDB listener for the topic or the queue to not start listening until the data cache is initialized.  Can someone point me to an example of how to do this?  I have seen a few discussions that suggested delaying in the post contruct method, but I would like to find a good reference for building a mechanism for this.

       

      Thanks