JBoss远程部署 [英] JBoss remote Deployments

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

问题描述

我知道像Websphere和Weblogic这样的应用服务器具有可以使用Ant任务或Jython编写的远程部署功能。 JBoss有什么相当的东西吗?基本上,如果我在某个已知位置有一个服务器,并且我有适当的凭据,我如何远程部署到JBoss?

解决方案

部署到远程JBoss AS并不容易,因为JBoss AS在该领域没有提供太多帮助。但是这里有一些想法/建议:




  • 使用 JBoss JSR-88实现(在Java EE 6中被修剪,因此将在Java中删除EE 7,但这给你一些时间)。

  • 按照@skaffman的建议使用底层的 DeployManager ,或者将可部署上传到远程服务器,并使用文件:// 协议或将其放在Web服务器上,并使用 http://

  • 使用货物(但有一个限制,可部署必须先上传到远程服务器)。

  • 使用使用JMX部署界面的 jboss-maven-plugin 并因此支持远程部署(请参阅 MJBOSS-3 ),如上所述。

  • 或者只需将可部署(FTP,SCP)上传到远程机器,并将其远程移动到 deplo y 目录。


I know the app servers like Websphere and Weblogic have remote deployment capabilities that can be scripted with either Ant tasks or Jython. Is there something equivalent for JBoss? Basically, if I have a server at some known location and I have appropriate credentials, how do I deploy to JBoss remotely?

解决方案

Deploying to a remote JBoss AS is not easy because JBoss AS doesn't provide much help in that area. But here are some ideas/suggestions:

  • Use the JBoss JSR-88 implementation (which is pruned in Java EE 6 and will thus be removed in Java EE 7, but this give you some time).
  • Use the underlying DeployManager as suggested by @skaffman and either upload your deployable to the remote server and use the file:// protocol or put it on a web server and use http://.
  • Use Cargo (but there is a limitation, the deployable must be uploaded to the remote server first).
  • Use the jboss-maven-plugin which uses the JMX deployment interface and thus supports remote deployment (see MJBOSS-3) as we saw above.
  • Or simply upload your deployable (FTP, SCP) to the remote machine and move them remotely to the deploy directory.

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

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