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
[AIX][Linux]

AIX® and Linux® 的示例

本示例表示在 UNIX 系统上,用户 fteuser 使用环境变量 HOME:
transferRoot=$HOME/fte/
解析为以下文件路径:
/home/fteuser/fte/