How to programmatically check if an application is deployed in JBoss5?

I am writing a small application to automate deployment. Basically, it periodically checks the FTP server for a new .ear file. Compares the checksum of the remote ftp file with what is currently deployed. If there is a new ftp file, you can get it and deploy it ...

Then I checked if the application was installed successfully. At the moment, I am sending an HTTP request to the main landing page of the application, and then checking the http return code for a successful deployment. However, I do not think this is the best way to verify a successful deployment, as server components may not deploy.

Is there a way to access some JBoss API to get a list of deployed applications? Or if someone has other ideas?

Thanks in advance...

+2
source share
1 answer

JBoss supports the JSR-88 deployment API . Take a look at this client that deploys on JBoss using the JBoss JSR-88 implementation.

+1
source

Source: https://habr.com/ru/post/1302689/


All Articles