docmain.css" /> How to use server side events - Reflection ZFE 2.1

How to use server side events

Using server side events, you can supply procedural Java code that can extend and improve the presentation of host data.

  1. Make the Reflection ZFE SDK available to your development environment. The SDK is available at install-dir\Micro Focus\ReflectionZFE\sessionserver\sdk.

  2. Write the Java code necessary to accomplish the task and compile the code into a Java class within a JAR (Java Archive) file.

  3. Copy the JAR file to install-dir\Micro Focus\ReflectionZFE\sessionserver\webapps\zfe\WEB-INF\lib and restart the session server.

    If you have more than one session server on which you want the event to run, you must copy the JAR file to this location on each server.

  4. Add the session you want to associate with the event in the Administrative Console.

  5. As you configure the session in the Reflection ZFE web client, open the Customization panel.

  6. Under Server Side Events type the fully qualified class name to the event.

  7. Launch the session and test the event.

To access API documentation and event samples

To help you create server side events, Reflection ZFE has an SDK and samples that are available to provide you with a starting point.

  1. Navigate to <install-dir>\Micro Focus\ReflectionZFE\sessionserver\sdk\java.

  2. In the SDK directory, access:

    • \javadoc. This directory contains JavaDoc files for direct viewing.

    • \samples - This directory contains Java sources for direct viewing.

    • \zfe-sdk.jar - The JAR file contains the Java classes to import into your IDE.

    • \zfe-sdk-javadoc.jar - The JAR file contains JavaDoc files to import into your IDE.

Related Topics