Using the ZFE Java SDK

Working with server side events and the Reflection ZFE SDK you can supply procedural Java code that can extend and improve the presentation of host data. To help you create server side events, Reflection ZFE has an SDK and samples that can provide you with a starting point.

The Javadocs are available in your installation directory (<install dir>\sessionserver\sdk\java\javadocs\index.html) as well as online.

  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\microservices\zfe\extensions\server 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 and type the fully qualified class name to the event.

  6. Launch the session and test the event.

Examples and documentation

To access the SDK for direct viewing and to import to your IDE:

  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.