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?
Thanks in advance
The
applicationspath under the Dmgr profile contains the files that have been deployed in the admin console.The
installedAppspath 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.Deploying a single file
The safest practice would be to deploy a single file using the admin console, rather than editing it in-place on the filesystem:
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.
Direct edit on the filesystem
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
installedAppsdirectory. (The location is controlled by WebSphere variableAPP_INSTALL_ROOT, which defaults to${USER_INSTALL_ROOT}/installedApps.)web.xml
web.xml, however, is different. If you edit that ininstalledApps, 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-INFOr 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.