MFT プロパティーでの環境変数の使用

IBM® WebSphere® MQ 7.5以降、ファイルまたはディレクトリーの場所を表す Managed File Transfer プロパティーで環境変数を使用できるようになりました。 これにより、製品の一部の実行時に使用されるファイルまたはディレクトリーの場所を、環境の変更に合わせて変えることができます。 例えば、プロセスを実行するユーザーの変更などです。

以下のプロパティーは、ファイルまたはディレクトリーの場所を受け入れるため、環境変数を含めることができます。
  • agentSslKeyStore
  • agentSslKeyStoreCredentialsFile
  • agentSslTrustStore
  • agentSslTrustStoreCredentialsFile
  • cdNodeKeystoreCredentialsFile
  • cdNodeTruststoreCredentialsFile
  • cdTmpDir
  • cdNodeKeystore
  • cdNodeTruststore
  • commandPath
  • connectionSslKeyStore
  • connectionSslKeyStoreCredentialsFile
  • connectionSslTrustStore
  • connectionSslTrustStoreCredentialsFile
  • coordinationSslKeyStore
  • coordinationSslKeyStoreCredentialsFile
  • coordinationSslTrustStore
  • coordinationSslTrustStoreCredentialsFile
  • exitClassPath
  • exitNativeLibraryPath
  • javaCoreTriggerFile
  • sandboxRoot
  • transferRoot
  • wmqfte.database.credentials.file
[Windows]

Windows の例

Windows システムで、ユーザー fteuser が次のように環境変数 USERPROFILE を使用したとします。
wmqfte.database.credentials.file=%USERPROFILE%\\logger\\mqmftcredentials.xml
これは次のファイル・パスに解決されます。
C:\Users\fteuser\logger\mqmftcredentials.xml
[UNIX]

UNIX の例

UNIX システムで、ユーザー fteuser が次のように環境変数 HOME を使用したとします。
transferRoot=$HOME/fte/
これは次のファイル・パスに解決されます。
/home/fteuser/fte/