IBM Support

What are the advantages of deploying the application in EAR mode? 

Question & Answer


Question

What are the advantages of deploying the application in EAR mode?

Answer

1. Why does Sterling suggest EAR mode in production? According to Customization Guide, "The Sterling Multi-Channel Fulfillment Solution deployed in exploded mode works in the same way as the Solution deployed in EAR mode. There are no performance implications specific to exploded mode”. Since no performance difference between EAR mode and exploded mode what is the real reason to deploy the application in EAR mode on a production instance?
Answer: There are two advantages of deploying in the EAR mode. They are:
       
  •    
    Sterling Commerce recommends the EAR mode of deployment in production. In case an application server hosts multiple applications, there is no interference of jars or classes across applications. This is because each application is packaged or deployed as a single EAR file isolated from other application packages (EARs). However, in exploded mode, the class that is first in the CLASSPATH is always considered.
       
  •    
  • For an application deployed in EAR mode, only the administrator can make any changes to the deployment and the deployment is safe; that is, any changes made in the deployment folder do not reflect in the EAR until one builds and deploys the new EAR. However, in WAR mode, changes in the deployment folders are in effect with a simple restart of the application server. This ease might make the system (deployment) vulnerable in Production.

2. Is it possible to pre-compile JSP page under WAR mode? The Performance Management Guide: 12.1.1.4 states the method to pre-compile JSPs only for EAR mode but not for WAR mode.

Answer: It is possible to pre-compile JSPs in WAR mode as well; it is NOT required to build the resources.jar as the changes take place in the webpages folder. The server in exploded mode directly picks up the changes. Hence, the guide does not mention for WAR mode. However, in EAR modes, it is required to rebuild the EAR when changes are made at webpages folder; hence, it is mentioned in the guide.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

FAQ3274

Document Information

Modified date:
16 June 2018

UID

swg21519201