Command Line Utility to Publish Metadata in Metadata Browser

A command line utility MDBPublishExecution.sh is available to publish Metadata in Metadata Browser.

Following are the pre-requisites before executing this utility:

  1. If the FICSERVER is configured to cache the metadata at the start up of the server, you need to wait till the caching of metadata is completed to invoke this utility.
  2. Ensure that JAVA_HOME is pointing to JAVA bin installation directory.
  3. Ensure that the following jar file is present in $FIC_DB_HOM/lib directory.aai-wsclient-mdbpublish.jar,aai-wsmdbpublishservice.jar
  4. Ensure that MDBPublishExecution.properties file is present in $FIC_DB_HOME/conf folder.

    You can also manually update the properties file in the path $FIC_DB_HOME/conf/MDBPublishExecution.properties to point to the required ServiceURL.

    MDBPUBLISH_EXECUTION_WSDL_LOCATION = URL of WebService (For example, http://<<IP ADDRESS>>/OFSAAI/mdbPublishExecution?wsdl)
  5. Metadata should be present.

    Note:

    Metadata definitions of length more than 200 characters are not supported for MDB Publish.

To execute Metadata Browser publish utility:

  1. Navigate to $FIC_DB_HOME/bin of OFSAAI FIC DB tier.
  2. Execute MDBPublishExecution.sh (UNIX)
    For example, ./MDBPublishExecution.sh
  3. While executing, provide any of the following parameter as required:
    • ALL - To publish metadata to all the available information domains.
    • INFODM1 - To publish metadata to only one (specified) information domain.
    • INFODOM1~INFODOM2~INFODOM3 - To publish metadata to multiple (specified) information domains separated by tilde β€œ~”.

      Note:

      If no parameter is specified, by default β€œALL” option is considered
  4. You can access the location $FIC_DB_HOME\log\MDBPublishExecution.log to view the related log files
  5. The publish execution specific log information is present in the MDBPublish.log file available at the <DEPLOYED LOCATION>/<Context>.ear/<Context>.war/logs folder.

To run the utility through the Operations module:

  1. Navigate to the Operations module and define a batch.
  2. Add a task by selecting the component as RUN EXECUTABLE.
  3. Enter Metadata Value as mentioned in the example.

For Example:

Component ID: RUN EXECUTABLE

Metadata Value (Executable) like:

MDBPublishExecution.sh,LANG611INFO

(where LANG611INFO is the Infodom)

Batch = Y