Question
EAR vs WAR
Hello,
I stumbled on this topic but I miss the basic idea. To my knowledge, unless I write custom Java activities, Pega writes all the code from my application configuration. Hence as Pega developer I don't really mind about the generated code or technology behind the scene.
If this is correct, why should I care about choosing EAR vs WAR deployment? Is there any Pega feature or functionality that only works if I decide to deploy EAR file?
I saw other posts on this subject (https://collaborate.pega.com/question/advantages-deploying-pega-war-vs-ear) where things like EJB and 2FC are mentioned, but again, unless I write a Java activity that specifically uses EJB (as an example) how this should be relevant to me as Pega developer (configuration, no code)?
Furthermore, does this apply to PegaCloud as well? Do I have the choice to decide EAR/WAR deployment?
Cheers.
The idea of choosing between EAR & WAR file depends on the features & integrations you are going to develop & use with Pega.
Implementing features like below not just depend on the custom code we write in java steps, but also depends on the application's capability to leverage app server components to be able to run. To facilitate this, the EAR file is packaged with additional config files that are relevant to J2EE compliant servers like Websphere, JBoss or Weblogic.
Use the EAR file only if you need one of the following EAR-only features. Else, consider WAR file deployment as a best practice irrespective of any app server.
Latest PegaCloud offerings default to WAR based deployments.