How To Update The Version Of An Oracle API Gateway FED File Using Jython Scripts ?
Last updated on MARCH 30, 2016
Applies to:Oracle API Gateway - Version 11.1.2 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):
- For testing, the $OAG_HOME/apigateway/system/conf/FactoryConfiguration-OracleGateway.fed file was copied to the C:\apps location.
- 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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms