Creating build files for clusters

You must create a separate buildmaximoear.cmd file for each cluster. When you run the separate buildmaximoear.cmd files, you create a separate EAR file for each cluster.

About this task

The install_home variable represents the installed location of the Maximo® Asset Management folder, which by default is ibm\SMP\maximo.

Procedure

  1. Create a copy of the install_home\deployment\buildmaximoear.cmd file for each cluster that you plan to deploy. For example, if you plan to deploy four clusters, create the following four copies:
    • buildmaximoearui.cmd
    • buildmaximoearcron.cmd
    • buildmaximoearmif.cmd
    • buildmaximoearrpt.cmd
  2. Open the buildmaximoear.cmd file for each cluster, and add the following shell command at the beginning of the file where cluster is the cluster whose file you are editing:

    copy /Y install_home\applications\maximo\properties\maximocluster.properties install_home\applications\maximo\properties\maximo.properties

    For example, for the user interface cluster, you add the following shell commands:

    copy /Y install_home\applications\maximo\properties\maximoui.properties install_home\applications\maximo\properties\maximo.properties

  3. In the buildmaximoear.cmd file for each cluster, add the following shell command at the beginning of the file where cluster is the cluster whose file you are editing:

    copy /Y install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ejb-jarcluster.xml install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ejb-jar.xml

    For example, for the user interface cluster, you add the following shell commands:

    copy /Y install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ejb-jarui.xml install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ejb-jar.xml

  4. If the application server for your deployment is WebSphere® Application Server, in the buildmaximoear.cmd file for each cluster, add the following shell command at the beginning of the file where cluster is the cluster whose file you are editing:

    copy /Y install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ibm-ejb-jar-bndcluster.xmi install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ibm-ejb-jar-bnd.xmi

    For example, for the user interface cluster, you add the following shell commands:

    copy /Y install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ibm-ejb-jar-bndui.xmi install_home\applications\maximo\mboejb\ejbmodule\meta-inf\ibm-ejb-jar-bnd.xmi

  5. If the application server for your deployment is WebLogic Server, in the buildmaximoear.cmd file for each cluster, add the following shell command at the beginning of the file where cluster is the cluster whose file you are editing:

    copy /Y install_home\applications\maximo\mboejb\ejbmodule\meta-inf\weblogic-ejb-jarcluster.xml install_home\applications\maximo\mboejb\ejbmodule\meta-inf\weblogic-ejb-jar.xml

    For example, for the user interface cluster, you add the following shell commands:

    copy /Y install_home\applications\maximo\mboejb\ejbmodule\meta-inf\weblogic-ejb-jarui.xml install_home\applications\maximo\mboejb\ejbmodule\meta-inf\weblogic-ejb-jar.xml

  6. For each cluster that you plan to deploy, in the buildmaximoear.cmd file, set EAR_FILENAME to the unique file name for the cluster. For example, if you are editing the buildmaximoearui.cmd file for the user interface cluster, set the file name to maximoui.ear.
    set EAR_FILENAME=maximoui.ear
    When you run the build script to build the EAR file, the resulting EAR file is named maximoui.ear.


Feedback