入力変数に応じてプロパティが動的であるフローでsftpエンドポイントを使用する方法を理解しようとしています。 だから流れは次のように基本的である:動的プロパティを持つMule sftpエンドポイント
<flow name="dynamicSftpEndpoint">
<sftp:inbound-endpoint name="inbound" connector-ref="SFTP"
host="#[sftpHost]" port="#[sftpPort]"
user="#[sftpUser]" password="#[sftpPassword]"
archiveDir="#[sftpInboundArchive]"
responseTimeout="${sftp.responseTimeout}"
path="#[sftpInboundPath]">
<file:filename-regex-filter pattern="#[sftpInboundPattern]" caseSensitive="false"/>
</sftp:inbound-endpoint>
<set-variable variableName="filename" value="#[message.inboundProperties.originalFilename]"/>
<log:info message="File '#[filename]' received from endpoint #[market]"/>
</flow>
しかし、私は
Caused by: org.mule.api.endpoint.MalformedEndpointException: The endpoint "sftp://#[sftpUser]:#[sftpPassword]@#[sftpHost]:#[sftpPort]/#[sftpInboundPath]" is malformed and cannot be parsed. If this is the name of a global endpoint, check the name is correct, that the endpoint exists, and that you are using the correct configuration (eg the "ref" attribute). Note that names on inbound and outbound endpoints cannot be used to send or receive messages; use a named global endpoint instead.. Only Outbound endpoints can be dynamic
のような例外を取得私は、発信エンドポイントが動的にできることが最後の文に気づきました。しかし、誰もダイナミックインバウンドエンドポイントの回避策について考えていますか?
Muleエンドポイントの新機能では、Javaでどのようにビルドするのですか? –
答えにコードサンプルが追加されました –