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

自闭症网瘾萝莉.ら 提交于 2020-01-04 06:50:04

问题


I am writing a small app to automate deployments. Basically, it checks an ftp server periodically for a new .ear file. Compares the checksum of the remote ftp file against what is currently deployed. If there is a new ftp file, then it gets picked up and deployed...

I then have a check to see if the app has deployed successfully. At the moment, I am sending an http get requested for the main landing page of the app and then checking the http return code for a successful deployment. However, I dont think this is the best way to check for a successful deployment as the serverside components might not have deployed.

Is there any way I could access some JBoss API to get a list of deployed applications? Or, if anyone has any other ideas?

Thanks in advance...


回答1:


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



来源:https://stackoverflow.com/questions/2153734/how-to-programmatically-check-if-an-application-has-deployed-in-jboss5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!