如何以编程方式检查应用程序是否已部署在 JBoss5 中?
我正在编写一个小应用程序来自动化部署。基本上,它定期检查 ftp 服务器是否有新的 .ear 文件。将远程 ftp 文件的校验和与当前部署的文件进行比较。如果有新的 ftp 文件,则会拾取并部署它...
然后我检查应用程序是否已成功部署。目前,我正在向应用程序的主登陆页面发送 http get 请求,然后检查 http 返回代码是否成功部署。但是,我认为这不是检查部署是否成功的最佳方法,因为服务器端组件可能尚未部署。
有什么方法可以访问 JBoss API 来获取已部署应用程序的列表吗?或者,如果有人有其他想法?
提前致谢...
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
JBoss 支持JSR-88 部署 API。查看使用 JBoss JSR-88 实现部署在 JBoss 上的此客户端。
JBoss supports the JSR-88 Deployment API. Have a look at this client that deploys on JBoss using the JBoss JSR-88 implementation.