1. Copy the files [src, build, c2dm.xml, c2dm.properties} in the distribution to {FIORANO_HOME}/esb/tools/cli (if not present).
  2. Edit c2dm.properties and specify the following parameters

Property Name

Description

FIORANO_HOME

Specifies the Fiorano Home location. The CLI folder can be copied and remote deployment can be done from a workstation to any environment by changing the URL in the build.properties.

ENVIRONMENT

Specifies the name of the environment. A properties file listing records in the format (placeholder=environment_specific_value ) should be created with the name {ENVIRONMENT}.properties in the same directory of c2dm.xml.

DELIVERY_BUNDLE_DIR

Specifies the directory location of the delivery bundle. This should be a absolute path till the delivery name as mentioned in the above section.

APPLICATION_STOP_WAITING_TIME

The amount of time in milliseconds for the utility to wait for all the in-progress messages to complete processing to avoid message loss when stopping applications. This value should be sufficient for all the pending messages to complete execution.

By default:

  • ENVIRONMENT is set to RCV
  • DELIVERY_BUNDLE_DIR is set to "$FIORANO_HOME\esb\tools\cli\delivery".

The figure below shows a sample C2DM.properties file.


Figure 1: Sample of C2DM.properties file

The environment properties are set in RCV.properties as per user requirements. For the default target (delivery), values in the properties will be replaced in all files in the _apps directory. For the target "replace" the values will be replaced for only the files mentioned against the property INPUT_FILE.

Figure 2 shows a sample RCV.properties file


Figure 2: Sample of RCV.properties file

  • Set JAVA_HOME to point to a JDK installation and increase the Xmx of the ANT Tasks by specifying set ANT_OPTS=-Xmx640m in the cli.bat. Launch the cli.bat.
  • Execute ant –f c2dm.xml to compile all the custom tasks in the src folder to the build folder.
Icon

Compile creates .class file for ReplaceEnvironment.java,MakeDelivery.java files present in cliHome\src and place them inside cliHome\build directory.

  • The components and the applications in the delivery folder in thespecified structure as mentioned in the Delivery Section.

For instance, place SIMPLECHAT_1.0.xml and WORK_1.0.xml in the _apps folder

  • Execute ant-f c2dm.xml. The default target 'delivery' is executed and the following section describes the steps happening in the process.

Do a manual verification if the services and event processes are imported correctly and the already running event processes are in running state now.
In our case, SIMPLECHAT_1.0.xml and WORK_1.0.xml will be imported onto the server with the property value FPS changed to FPS1

Adaptavist ThemeBuilder EngineAtlassian Confluence