Importing Metadata Using FileWatcher

Procedure

  1. Complete the required FileWatcher setup.
    1. The following is a sample FileWatcher section that needs to be present for importing metadata:
            <DataSet type="single" >
               <Name>Import</Name>
               <Credential domain="GLN">
               <Identity>0040885020007</Identity>  
                  <!-- Point to the destination enterprise -->                         
               </Credential>
              <Action>DataServiceUpdate</Action>
              <URIInfo scheme="local">
              <Relative>MQ_COMMON_DIR</Relative>
              <URI>target/metadata/import</URI>
                <!-- Directory where jar file to be imported is kept -->
              </URIInfo>
            </DataSet>

      In this example, the credential section is set to use a credential of the destination enterprise to which import of metadata is to be done. The credentials can belong to any valid TIBCO MDM supported domain.

    2. Ensure that the PollingInterval is set to a non-zero value to turn on polling by FileWatcher. For example:
      <PollingInterval>600</PollingInterval>

      In this example, the polling interval is set to 10 minutes.

  2. Copy the JAR file to be imported into the directory monitored by FileWatcher. For example, copy the JAR file into $MQ_COMMON_DIR/target/metadata/import/incoming.

Result

You can monitor the import from the Event Log screen. You can also refer to $MQ_HOME/log/dataservice.log.