MFT プロパティーでの環境変数の使用
IBM® WebSphere® MQ 7.5以降、ファイルまたはディレクトリーの場所を表す Managed File Transfer プロパティーで環境変数を使用できるようになりました。 これにより、製品の一部の実行時に使用されるファイルまたはディレクトリーの場所を、環境の変更に合わせて変えることができます。 例えば、プロセスを実行するユーザーの変更などです。
以下のプロパティーは、ファイルまたはディレクトリーの場所を受け入れるため、環境変数を含めることができます。
agentSslKeyStoreagentSslKeyStoreCredentialsFileagentSslTrustStoreagentSslTrustStoreCredentialsFilecdNodeKeystoreCredentialsFilecdNodeTruststoreCredentialsFilecdTmpDircdNodeKeystorecdNodeTruststorecommandPathconnectionSslKeyStoreconnectionSslKeyStoreCredentialsFileconnectionSslTrustStoreconnectionSslTrustStoreCredentialsFilecoordinationSslKeyStorecoordinationSslKeyStoreCredentialsFilecoordinationSslTrustStorecoordinationSslTrustStoreCredentialsFileexitClassPathexitNativeLibraryPathjavaCoreTriggerFilesandboxRoottransferRootwmqfte.database.credentials.file
![[Windows]](ngwin.gif)
Windows の例
Windows システムで、ユーザー fteuser が次のように環境変数 USERPROFILE を使用したとします。wmqfte.database.credentials.file=%USERPROFILE%\\logger\\mqmftcredentials.xmlこれは次のファイル・パスに解決されます。
C:\Users\fteuser\logger\mqmftcredentials.xml![[UNIX]](ngunix.gif)
UNIX の例
UNIX システムで、ユーザー fteuser が次のように環境変数 HOME を使用したとします。transferRoot=$HOME/fte/これは次のファイル・パスに解決されます。
/home/fteuser/fte/