To deploy applications to websphere application server, go to Applications -> New applications in the administration console. Here you have option to install Enterprise application or business level application or assets
- Enterprise application: An EAR file on a server configured to hold installable Web Applications, WAR, Java archives, library files, and other resource files.
- Business Level application: A business-level application is an administration model similar to a server or cluster. However, it lends itself to the configuration of applications as a single grouping of modules.
- Asset: An asset represents one or more application binary files that are stored in an asset repository, such as Java archives, library files, and other resource files. Assets can be shared between applications.
Select new enterprise application. Under this selection, you can deploy packaged j2ee applications like EAR, WAR, JAR or SAR modules.
On the next screen you have options to select the path to the application binary file location, from where it should be installed.
- From loacal filesystem
- Remote file system
After choosing the path to the application binary…click next
Next page is ‘Preparing for the application installation’, here you can choose install option
- Fast Path: The deployment wizard will skip advanced settings and only prompt for the absolute minimum settings required for the deployment.
- Detailed: The wizard will allow, at each stage of the installation, for the user to override any of the J2EE properties and configurations available to an EAR file
Next screen will present some more deployment options
- Precompile JavaServer Pages files: Specify whether to precompile JavaServer Pages (JSP) files as a part of installation. The default is not to precompile JSP files.
- Directory to install application: Specifies the directory to which the Enterprise Application Resource (EAR) file will be installed. You can change this if you want the application to be physically located outside of the WebSphere file structure.
- Distribute application: The default is to enable application distribution. You can override this and choose to not distribute the application across multiple nodes.
- Use Binary Configuration: Specifies whether the application server uses the binding, extensions, and deployment descriptors located within the application deployment document, the deployment.xml file (default), or those located in the EAR file.
- Deploy enterprise beans: The tool generates the code needed to run enterprise bean (EJB) files. You must enable this setting when the EAR file is assembled and theEJBDeploy is not run during packaging. Its default value is false.
- Application name: A logical name for the application. The default name is the same as the EAR file. An application name must be unique within a cell.
- Create MBeans for resources: Specifies whether to create MBeans for resources, such as servlets or JSP files, within an application when the application starts. The default is to create MBeans.
- Override class reloading settings for Web and EJB modules: Specifies whether the WebSphere Application Server runtime detects changes to application classes when the application is running. If this setting is enabled and if application classes are changed, then the application is stopped and restarted to reload updated classes. The default is not to enable class reloading.
- Reload interval in seconds: Specifies the number of seconds to scan the application’s file system for updated files.
- Process embedded configuration: Specifies whether the embedded configuration should be processed. An embedded configuration consists of files such as resource. xml and variables.xml. When selected or true, the embedded configuration is loaded to the application scope from the .ear file.
- File Permission: Allows all files to be read but not written to
• Allows HTML and image files to be read by everyone
- Application Build ID: A string that identifies the build version of the application. Once set, it cannot be edited.
- Allow dispatching includes to remote resources: Web modules included in this application are enabled as remote request dispatcher clients that can dispatch remote includes. Default = true.
- Allow servicing includes from remote resources: Web modules included in this application are enabled as remote request dispatcher servers that are resolved to service remote includes from another application. Default = true.
- Business level application name: Specifies whether the product creates a new business-level application with the enterprise application that you are installing or makes the enterprise application a composition unit of an existing business-level application.
- Asynchronous Request Dispatch Type: Specifies whether web modules can dispatch requests concurrently on separate threads.
- Allow EJB reference targets to resolve automatically: Specifies whether the product assigns default JNDI values for or automatically resolves incomplete EJB reference targets.
on next screen you can Map modules to server. The list of modules available in the applications will be displayed.
Next screen will show you the summery of the all the options you’ve choosen for this application deployment.
- Verify the summery and click finish for the application to be deployed to websphere.
Once the deployment is done, the application will be stored (runtime version) in installedApps directory which will be under profile_root/installedApps/
Now that your application deployment has been completed, check it under the Applications -> Enterprise applications. You can see the list of applications deployed under this selection.
on this screen, you’ll have the following options:
- Start: When an application is stopped, you will see a icon. To start, select one or more applications and click on the Start button.
- Stop: When an application is started, you will see a icon. To stop, select one or more applications and click the Stop button.
- Install: As a part of deploying an application, you install application files on a server. Depending on EAR/WAR complexity, the deployment wizard will dynamically produce a guide of steps which requires user input.
- Uninstall: Select applications you wish to uninstall. It is recommended you stop applications first.
- Update: Used to apply delta updates. Only the application code elements that have been changed in the application since last deployment are updated while the application remains running.
- Rollout Update: If an application is deployed across multiple nodes, you can use the Rollout Update option which replaces the application one node at a time. Using this method reduces the amount of time that any single node member is unavailable for service during application deployment.
- Remove File: Deletes a file of the deployed application or module. Remove File deletes a file from the configuration repository and from the file system of all the nodes where the file is installed.
- Export: Allows the application to be exported as an EAR file. Can be used to back up an application version.
- Export DDL: By using the Export DDL option, you can export DDL (Data Definition) files located within database-aware EJB modules.
- Export File: Allows the exporting of a specific file from an enterprise application or module.
- Select your application and then click start, to start the newly installed application. Test it in the browser accordingly.
Note: it is assumed that there is no web server in the setup. If you have web server, enable automatic node synchronization and generate-propagate plugin before initiating the deployed application