JBoss AS7 *.dodeploy 文件 [英] JBoss AS7 *.dodeploy files

查看:17
本文介绍了JBoss AS7 *.dodeploy 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将应用程序打包为 .war 文件,我们宣传对 JBoss AS5 的支持,并指示我们的客户将 .war 复制到他们的 JBoss 'deploy' 目录中,然后启动他们的应用服务器以部署 .war.

We package our application as a .war file, we advertise support for JBoss AS5 and instruct our clients to copy the .war into their JBoss 'deploy' directory, and start up their application server in order to deploy the .war.

我们正在引入对 JBoss AS7 的支持,因此我们对 AS7 的部署说明必须更改为类似

We are introducing support for JBoss AS7, so our deployment instructions for AS7 will have to change to something like

-copy the application.war to $JBOSS_HOME/standalone/deployments
-touch $JBOSS_HOME/standalone/deployments/application.war.dodeploy
-start JBoss AS7

这种部署方法对我来说似乎很笨拙,而且可能很脆弱,因为未能成功创建 *.dodeploy 文件会导致部署失败.此外,JBoss 启动问题可能会导致部署失败,导致 *.dodeploy 文件被重命名为 *.failed - 因此在尝试重新部署之前必须将其重命名回 *.dodeploy.我们认为,对于可能不熟悉 JBoss AS7 的一些客户来说,这个过程似乎有点尴尬.

This deployent method seems awkward to me, and possibly fragile, as failure to successfully create the *.dodeploy file would cause the deploy to fail. Also JBoss startup problems may cause the deploy to fail, causing the *.dodeploy file to be renamed *.failed - so it would have to be renamed back to *.dodeploy before attempting to redeploy. We are thinking the process seems a little awkward for some of our clients, who may not be familiar with JBoss AS7.

有什么方法可以使这个部署过程自动化,让那些可能对 JBoss AS7 的工作方式不满意的部署者更顺利?其他人如何处理这种情况?感谢您的任何建议.

Is there any way to automate this deployment process so that it is smoother for deployers who may not be comfortable with how things work with JBoss AS7? How are other people handling this type of situation? thanks for any suggestions.

推荐答案

有一个相当容易使用的 Web 界面.您可以在 JBoss AS7 启动后访问 http://localhost:8080 来访问它.该页面上有一个链接,可将您带到管理控制台.

There is a web interface that's fairly easy to use. You can access it after JBoss AS7 has been started by going to http://localhost:8080. There is a link on that page that takes you to the administration console.

您还可以使用 CLI 界面为部署编写脚本.这里有一些信息 https://docs.jboss.org/author/display/AS7/Management+Clients 关于如何使用.

You could also write scripts for deployments using the CLI interface. There is some information here https://docs.jboss.org/author/display/AS7/Management+Clients about how to use it.

最后,您始终可以编写自己的 Java 客户端来部署应用程序.我写了一篇博客文章,关于如何编写自定义部署 CLI 界面.

Lastly you can always write your own Java client to deploy applications. I wrote a blog post a while back on how to write a custom deployment CLI interface.

这篇关于JBoss AS7 *.dodeploy 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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