Multiple EAR files

Building an Application EAR also takes an optional file to allow for splitting the client components into different WAR and EAR files and also to allow for some more control of some of the EAR configuration and included modules. This file is named deployment_packaging.xml and should be placed in your SERVER_DIR/project/config directory.

The format of the deployment_packaging.xml file is as follows:

Figure 1. deployment_packaging.xml sample
<deployment-config>
  <ear name="Curam"
      requireServer="true">
    <components>custom,sample,SamplePublicAccess,core</components>
    <context-root>/Curam</context-root>
  </ear>
  <ear name="CuramExternal">
    <components>SamplePublicAccessExternal</components>
    <context-root>/CuramExternal</context-root>
    <custom-web-xml>${client.dir}/custom_web_xml</custom-web-xml>
  </ear>
</deployment-config>

Each file can have multiple ear elements and results in an EAR file being produced in the SERVER_DIR/build/ear/WAS directory. The options for each element are:

For each web client (i.e., WAR file) a separate web client component is required to contain its customizations. In the case of multiple web clients, your CLIENT_COMPONENT_ORDER environment variable will include all your custom components; but, separate <ear> elements will be required, one for each custom web component (and other components as needed).

As with the standard target, a fully built IBM Cúram Social Program Management application must be available. For details on how to build an application, please refer to the Cúram Server Developer's Guide.