如何以编程方式检查应用程序是否已部署在JBoss5中? [英] How to programmatically check if an application has deployed in JBoss5?

查看:109
本文介绍了如何以编程方式检查应用程序是否已部署在JBoss5中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个小应用程序来自动部署。基本上,它会定期检查ftp服务器以获取新的.ear文件。将远程ftp文件的校验和与当前部署的校验和进行比较。如果有一个新的ftp文件,那么它会被选中并部署...

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...

然后检查一下应用是否已成功部署。目前,我正在为应用程序的主登陆页面发送请求的http get,然后检查http返回代码以便成功部署。但是,我不认为这是检查成功部署的最佳方法,因为服务器端组件可能尚未部署。

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.

我有什么方法可以访问某些JBoss API获取已部署应用程序的列表?或者,如果有人有任何其他想法?

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

提前致谢...

推荐答案

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.

这篇关于如何以编程方式检查应用程序是否已部署在JBoss5中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆