Packaging custom Java EE assets
The packaging format for Java EE applications is clearly defined in the Java EE specification. Java EE applications are delivered as Java EE EAR files, which are JAR files that have special deployment descriptors to tell the application server information about the application.
Enterprise applications are divided
into smaller parts:
- EJB modules
- WAR files
- Logic or utilities
- RAR or connector modules
- Considerations for the struts-config-ext.xml file
- If you edit the WebSphere Commerce Struts custom configuration
file, struts-config-ext.xml, you must add it to your source code management
system and package it along with other changed files. Since the store
identifiers in your development environment, quality assurance environment,
and production environment can be different, you will need to change
this file during the packaging phase to change the store identifiers
to match the target environment. After completing this, you can deploy
your changes.
For more information about the struts-config-ext.xml file, see Customizing the Web application configuration and Updating the Web application configuration.
- WebSphere Commerce assets and WebSphere Application Server deployment packages
- When you deploy your custom assets, it is important that you understand
and package your WebSphere Commerce assets in a format that is compatible
with WebSphere Application Server. The following table outlines which
WebSphere Application Server package type you should use, depending
on the WebSphere Commerce assets and number of assets, that you want
to deploy:Notes:
- You can combine the packaging options; for example, if you have updates for EJB files and JSP files, you can build two deployment packages: an EJB module JAR file and a partial application ZIP file.
- WebSphere Application Server also provides an option to replace the entire EAR file with a new version; however, this option is not supported for WebSphere Commerce.
- All packaging options assume you are packaging from your WebSphere Commerce development environment.
Packaging method | Description | Explanation |
---|---|---|
Single file | Any single WebSphere Commerce asset, for example:
|
Use this option if you only have updates for a
single file in the application. The file must not be a module file
such as an EJB module or Web module. The file can be inside any module
of the application. For example, if you have changes to an XML file,
use package as a single file. Notes:
|
Partial application | More than one of the WebSphere Commerce assets described in the "Single file" option. | Use this option if you want to update or delete
several files in the application as defined in the single file method
on the "Single file" option. The group of files do not have to be
in the same module. You would typically use this option to update
the follow types of files:
Notes:
|
Module file | An entire module, typically an EJB module.
|
Use this option if you want to:
|