Websphere Application Server中的文件夹"installedApps"和"applications"之间有什么区别? [英] what's the difference between folders 'installedApps' and 'applications' in websphere application server?

查看:352
本文介绍了Websphere Application Server中的文件夹"installedApps"和"applications"之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,在我们创建了DMGR和Node的配置文件之后,我们在路径$ DMGRPROFILE_HOME/config/cells/$ cellName下具有文件夹应用,在路径$ NODEPROFILE_HOME/下具有 installedApps . 所有要部署的应用程序都将放入文件夹 installedApps 中.而且,我们还可以在上方的文件夹 applications 下看到相同的内容.所以我的问题是它们之间有什么区别?为什么Websphere应用程序服务器将这些应用程序放入 installedApps 之外的文件夹应用程序中? 此外,例如,如果我需要更新已部署的应用程序war文件中的一个名为web.xml的文件,我是否必须在上述两个路径下都更新文件?

Normally, after we create profiles both DMGR and Node, we have folder applications under path $DMGRPROFILE_HOME/config/cells/$cellName and installedApps under path $NODEPROFILE_HOME/. All the applications to be deployed will be put into folder installedApps. And we can also see the same contents under the folder applications above. So my question is what's the difference between them? why does the websphere application server put such apps into folder applications besides installedApps? what's more, for example, if i need to update one file named web.xml of my deployed application war file, do i have to update file under both path above?

预先感谢

推荐答案

Dmgr配置文件下的applications路径包含已在管理控制台中部署的文件.

The applications path under the Dmgr profile contains the files that have been deployed in the admin console.

节点配置文件下的installedApps路径包含那些已同步到每个节点的文件.在大多数情况下,这也将在部署后立即进行.

The installedApps path under the Node profile contains those files after they've been synchronized out to each node. In most cases, this will be immediately after the deployment as well.

最安全的做法是使用管理控制台部署单个文件,而不是在文件系统上就地编辑它:

The safest practice would be to deploy a single file using the admin console, rather than editing it in-place on the filesystem:

缺点是您必须输入服务器部署文件名的 entire 路径.例如webapp.war/WEB-INF/classes/com/yourcompany/project/package1/YourClass.class.

The downside is that you have to enter the entire path to the server-deployed file name. e.g. webapp.war/WEB-INF/classes/com/yourcompany/project/package1/YourClass.class.

如果有错别字,它将部署,但不会部署在您想要的地方,并且您可能不会注意到它,直到预期的更改未生效.

If you have a typo, it will deploy, but not where you wanted, and you might not notice it until your expected changes didn't take effect.

也就是说,在文件系统上进行编辑的速度更快,因此我们有时会这样做,尤其是对于JSP.为此,您需要在节点的installedApps目录下编辑副本. (该位置由WebSphere变量APP_INSTALL_ROOT控制,该变量默认为${USER_INSTALL_ROOT}/installedApps.)

That said, it is faster to edit on the filesystem, so we do that at times especially for like JSPs. To do that, you need to edit the copy under the Node's installedApps directory. (The location is controlled by WebSphere variable APP_INSTALL_ROOT, which defaults to ${USER_INSTALL_ROOT}/installedApps.)

web.xml是不同的.如果在installedApps中进行编辑,则更改将不会生效.取而代之的是,您需要在以下路径中编辑一个:

web.xml, however, is different. If you edit that in installedApps, the changes won't take effect. Instead, you'll need to edit the one in a path something like:

$NODEPROFILE_HOME/config/cells/cellName/applications/earName.ear/deployments/applicationName/warName.war/WEB-INF

或者在$ DMGRPROFILE_HOME中进行操作,然后同步节点(通过syncNode.sh或通过管理控制台).

Or do it in the $DMGRPROFILE_HOME and then synchronize the node (either through syncNode.sh or through the admin console).

无论哪种方式,您都需要重新启动企业应用程序.

Either way, you'll then need to restart the enterprise application.

这篇关于Websphere Application Server中的文件夹"installedApps"和"applications"之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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