My Oracle Support Banner

How To Update The Version Of An Oracle API Gateway FED File Using Jython Scripts ? (Doc ID 1617512.1)

Last updated on MAY 25, 2023

Applies to:

Oracle API Gateway - Version and later
Information in this document applies to any platform.


Trying to use a Jython script to load a fed file in memory, then update the version in the FED file.

Once the properties are updated in memory, the expectation is that the updated fed file would be written back to disk.  The script is expected to perform the following (directories and versions are provided as examples, and can be changed as necessary):

  1. For testing, the $OAG_HOME/apigateway/system/conf/FactoryConfiguration-OracleGateway.fed file was copied to the C:\apps location.
  2. Place a copy of the script in the $OAG_HOME/apigateway/samples/scripts location, then run the script from a console window that is opened to that location.  The output to the screen will be similar to the following:


This indicates that the Version parameter value in the manifest file of the fed file is v1. This can be checked by examining the value in the manifest of the original file.

A new fed file will be created in the C:\apps\updated location.  The script will change the value of the Version parameter to Version123 and save the changes in this new fed file. 


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.