2 Replies Latest reply on Aug 7, 2019 12:29 PM by wayne tech

    How to detect if management server is fully started up before executing cli script

    wayne tech Apprentice

      Hi All,


      I am running into a scenario where I need to create queues based on database information and I need to make the queues ready before users start to send requests.


      Currently we could have a java class with an annotated (@PostConstruct) method executed in order to create queues. However, the wildfly management server is not fully started and is not available for me to use ModelControllerClient to create the queues.


      Is there any way to detect if the management server is fully started up, and a signal may be sent to a Java class to execute cli script or using api to create the queue?