Check Wildfly server state from application

Discussão em 'StackOverflow' iniciado por Stack, Dezembro 30, 2020.

  1. Stack

    Stack Membro Participativo

    My wildfly standalone is running on a different machine and I use its IP for connection within my application. My goal is to make sure it's running and set a client state based on the answer. To do this, I simply send a query through ejb and if I receive a "Failed to connect to any server", I set client state to offline. Is there a way to do it better? Maybe a cli api to send a command for checking war deployment state? I know we can check it from jboss client on the machine if we're connected with deployment-info --name=App.war. But I couldn't find anything for my case. Does wildfly-core's org.jboss.as.cli.impl cover a case like this?

    Continue reading...

Compartilhe esta Página