JBoss上的交互式应用程序部署 [英] Interactive Application Deployment on JBoss

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

问题描述

在JBoss AS 7中,有没有办法交互式部署应用程序?换句话说,而不是在部署之前手动创建JBoss部署描述符(例如jboss-web.xml),JBoss是否有一种方式来向部署者提供它为了成功部署所需的信息和/或有可以通过编程方式或通过脚本来调用API吗?例如,如果应用程序定义了在代码( @Resource )中注释的资源引用或环境条目,那么部署者如何知道该资源引用必须被绑定在部署期间?



对于某些背景,我一直使用IBM WebSphere Application Server作为我的主要Java EE应用程序服务器,它提供Java API,wsadmin命令和管理控制台中的GUI向导,提示部署者部署应用程序所需的部署信息,并在部署期间生成自己的自定义描述符文件。我希望其他应用服务器,特别是JBoss 7也提供类似的功能。



其中一个目标是能够自动化 @Resource 注释)。 p>

特别是,我正在寻找在 Java EE规范


EE.2.12.4部署描述符和注释



Java EE产品提供者是必需的有助于提供一个解释Java EE部署描述符和类文件注释的部署工具,并允许部署者将应用程序组件的需求映射到特定Java EE产品和环境的功能。




虽然该规范对于这意味着什么以及如何实现,但在我看来,WebSphere Application Server精美地满足了这一要求,而许多其他应用服务器(如JBoss ,似乎)需要在部署之前手动创建自定义描述符。



另请注意,我已将同样的问题发布到JBoss社区论坛(< a href =http://community.jboss.org/message/621309#621309 =nofollow> here 和 here ),但没有收到任何回应。

解决方案

线程是有点o我知道,但无论如何。我曾经在Websphere工作过,我知道你正在描述的部署工具。而且,对于任何版本的JBoss,没有任何类似的东西。



真的,当你考虑规范的措辞(...是必需的提供部署工具)


In JBoss AS 7, is there a way to interactively deploy an application? In other words, rather than manually creating JBoss deployment descriptors prior to deployment (e.g. jboss-web.xml), is there a way for JBoss to prompt the deployer for information that it needs in order to successfully deploy and/or is there an API that can be invoked programmatically or via scripting to do this? For example, if an application defines a resource reference or environment entry which is annotated in the code (@Resource), how is a deployer to know that this resource reference must be bound at deployment-time?

For some background, I've been using IBM WebSphere Application Server as my primary Java EE application server and it provides Java APIs, wsadmin commands, and a GUI wizard in the admin console which prompt deployers for the deployment information that it needs to deploy an application and generates its own custom descriptor files during deployment. I'm hoping that other application servers, in particular, JBoss 7, also provide similar functionality.

One of the goals is to be able to automate the deployment of a diverse set of portable Java EE applications (i.e. applications that will not have JBoss-specific descriptors containing deployment information), and to prevent deployers manually performing deployments from being intimately familiar not only with the application and module deployment descriptors, but more importantly, all of the annotations contained in the code that must be managed at deployment-time (such as @Resource annotations).

In particular, I'm looking for the fulfillment of this requirement in the Java EE specification:

EE.2.12.4 Deployment Descriptors and Annotations

The Java EE Product Provider is required to provide a deployment tool that interprets the Java EE deployment descriptors and class file annotations and allows the Deployer to map the application component’s requirements to the capabilities of a specific Java EE product and environment.

While the specification is somewhat ambiguous as to what this means and how it is implemented, in my opinion, WebSphere Application Server fulfills this requirement beautifully, whereas many other application servers (such as JBoss, it seems) that require the manual creation of custom descriptors prior to deployment fall short.

Also note that I've posted this same question to the JBoss Community Forums (here and here), but have not received any responses there.

解决方案

The thread is somewhat old, I know, but anyway. I've worked with Websphere in the past and I know the deployment tool you are describing. And, no there isn't anything like that for any version of JBoss.

Odd, really, when you consider the phrasing of the specification ("...is required to provide a deployment tool")

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

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