You are here: FME Server Administrator's Guide > Common Configurations > Configure FME Engine Resources > Sharing Custom Resources Between Workspaces

Sharing Custom Resources Between Workspaces

FME Server workspaces can use custom formats, custom transformers, and custom coordinate systems in the same way that FME Workbench does. There are two ways to upload these shared custom resources to FME Server:

To publish custom resources to FME Server:

  1. Open the custom format or custom transformer in FME Workbench:

    File > Open > Select custom format/transformer

  2. Publish the resource to FME Server as you would publish a workspace.

    The resource then becomes available to workspaces within the repository to which you published it.

To make a custom resource available using the shared resource directive:

You can manually place a custom resource in a directory that is referenced by the FME_SHARED_RESOURCE_DIR directive in the FME Engine configuration files, located at:

<FMEServerDir>\Server\fmeEngineConfig_<instanceName>.txt

The default entry for the shared resource directive looks like this:

FME_SHARED_RESOURCE_DIR "!FME_SERVER_ROOT!/Resources/shared"

You can add locations to this directive for your own shared resources. To ensure these locations have the necessary subdirectory structure, they must be added using FME Workbench.

  1. In FME Workbench, click Tools on the menu bar, and select FME Options.
  2. On the left sidebar, click Default Paths.
  3. Under Shared Resources Directories, click the Add button .
  4. Navigate to any location you want. To add a network share, specify the UNC path rather than a mapped drive.
  5. Assuming the required subdirectory structure of the specified location is not already in place, you are prompted with a Subdirectories Not Found message. Click Yes.
  6. (Optional) Now that the required subdirectory structure is in place, if you do not want your FME Desktop to use this directory or resource, remove it from the list.
  7. Manually place the resource you want to share in the corresponding subdirectory. For example, if the directory you added is C:\FME_Shared, and the resource is a custom transformer, place it in C:\FME_Shared\Transformers.
  8. For each engine currently in use by FME Server, edit the corresponding FME Engine configuration file by adding the new shared resource directories. The following example shows two additional directories, one on a network share and one on the local system:
  9. FME_SHARED_RESOURCE_DIR "!FME_SERVER_ROOT!/Resources/shared;\\server230\FMEResource;C:\FME_Shared"

  10. Restart FME Server.
  11. Note:  If any engines do not start with the FME Server, there is likely a syntax error in the corresponding engine configuration file.

To verify that the new directories are recognized by FME Server, run any job, using the Job Submitter service, and view the log. Look for entries similar to the following:

Note:  If there are two definitions of the same custom transformer, one in the repository directory and the other in the shared directory, FME Server tries to find the transformer in FME_SHARED_RESOURCE_DIR first and use that. If it is not there, it looks for the transformer defined in the resource directory.

Safe Software Inc. www.safe.com