在 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![[AIX]](ngaix.gif)
![[Linux]](nglinux.gif)
AIX® and Linux® 的示例
本示例表示在 UNIX 系统上,用户 fteuser 使用环境变量 HOME:transferRoot=$HOME/fte/解析为以下文件路径:
/home/fteuser/fte/