Publishing settings for WebSphere Application Server traditional
Publishing involves copying files (application, resource files, and deployment descriptor files) to the correct location for the server to find and use them. You can either publish your application on the server or run your application within the development environment without copying the application into the directories of the server.
About this task
Run server with resources on Server
The run server with resources on Server publishing option 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. 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.
The 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-level settings by using the administrative console. However, 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 that are 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 by 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 by 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 you are running a local WebSphere Application Server and not available when you are running a remote server.
The run server with resources within the workspace setting is useful when you are 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.
This publishing option should publish faster when an application contains a single root, as opposed to containing multiple roots, because the server expects the structure of an application to have only a single root. As a result, the workbench might require more processing time to publish an application with multiple roots. To determine whether the structure of your application contains a single or multiple roots, use the Project Structure Validator. For details, see Creating and configuring Java™ EE projects using wizards topic.
PARENT_LAST
. You are limited to
editing your application-level configurations in the workbench.
If you want to switch publishing settings to run server with resources on Server, you need to remove the application from the server by 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 by using the Add and Remove Projects wizard.
Run server with resources within the workspacepublishing option, the server can lose track of your application under the following scenarios:
- If you delete your workspace, the server no longer can find your application. As a result, if you did not put your application under source control management and the workspace is deleted, you can lose your application from your file system.
- If you delete an application from the workspace without removing it from the server, the server
no longer can find your application. As a result, you might encounter errors when you are starting
the server because the server tries to start the missing application from the workspace. You can try
to manually remove the remaining application files from the server by using the administrative
console or the
wsadmin
command-line tool.
If you want to be able to view your application's deployment descriptors in the administrative console, you need to remove the application from the server by 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 by using the Add and Remove Projects wizard.
Automatically start applications after publishingSelect the Automatically start applications after publishing check box if you want the workbench to make an automatic attempt to start the application after it is published to the server. By default this check box is enabled.
You can clear this check box if you want to manually start the application after it
is published to the server. When this check box is cleared, the initial state of the published
application should be Stopped
. You can manually start the application by going into
the Servers view, expand the server, right-click the application, and select
Start.
If this check box is cleared, the application for running the Universal Test Client remains started on the server.
To configure the publishing settings for a WebSphere Application Server: