Run server with resources on Server
The Run server with resources on Server publishing option installs and copies the full application and its server-specific configuration from the workbench into the directories of the server. To use this publishing option, the server can be either a remote or local WebSphere Application Server v6.x. The default location where an application gets copied into the server is \directory\profile\installedApps\cellName directory, where \directory\profile is the directory of your profile for the WebSphere Application Server.
Advantage of selecting the Run server with resources on Server setting is you are running your application from the directories of your server and you can edit advanced application-specific settings for your application using the WebSphere Administrative Console. However, when you select to add your application to the server using the Add and Remove Projects wizard, this publishing option might take a longer time to complete than the Run server with resources within the workspace publishing option, as it involves more files copied to the server.
If you want to switch publishing settings to Run server with resources within the workspace, you need to remove the application from the server using the Add and Remove Projects wizard, select the Run server with resources within the workspace radio button, and add the application back onto the server using the Add and Remove Projects wizard.
Run server with resources within the workspaceThe Run server with resources within the workspace publishing option requests the server to run your application from the workspace. This publishing option is available only when running a local WebSphere Application Server v6.x and not available when running a remote server.
The Run server with resources within the workspace setting is useful when developing and testing your application as it is designed to operate faster than the Run server with resources on Server publishing option as fewer files are involved when copied over to the server.
If you enable the Run server with resources within the workspace setting and clear the Minimize application files copied to the server publishing option, when you select to add your application to the server using the Add and Remove Projects wizard, the application does not get copied into the directory of the server. For example, the application files does not get copied into the installedApps directory of the server. However, your application does get copied into your server configuration directory: \directory\profile\config\cells\cellName\applications directory, where \directory\profile\ is the directory of your profile for the WebSphere Application Server. As a result, you can only view your J2EE deployment descriptor file using the WebSphere Administrative Console.
If you want to switch publishing settings to Run server with resources on Server, you need to remove the application from the server using the Add and Remove Projects wizard, select the Run server with resources on Server radio button, and add the application back onto the server using the Add and Remove Projects wizard.
An additional publishing option becomes available when the Run server with resources within the workspace option is selected, which is the Minimize application files copied to the server option. This option is designed to optimize the publishing-time on the server by reducing the files copied to the server. In addition to the application files not getting copied into the installedApps directory of the server, the application also does not get copied into your server configuration directory. As a result, when configuring your application you cannot use the WebSphere Administrative Console to edit deployment descriptor information. You are limited to editing your J2EE Deployment Descriptor files for your application within the workbench. This publishing option is available only when running a local WebSphere Application Server v6.x and the application runs from the workspace, and not available when running a remote server.
If you want to be able to view your application's deployment descriptors in the WebSphere Administrative Console, you need to remove the application from the server using the Add and Remove Projects wizard, disable the Minimize application files copied to the server publishing setting by clearing this check box and enable only the Run server with resources on Server radio button, and then add the application back onto the server using the Add and Remove Projects wizard.