WSO2 ESB - 代理参数的动态值(传输) [英] WSO2 ESB - Dynamic value for proxy parameters (transport)

查看:30
本文介绍了WSO2 ESB - 代理参数的动态值(传输)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够为代理参数指定一个动态值.实际上,我必须使用完整的 URL 指定每个参数,例如:

I need to be able to specify a dynamic value for proxy parameter. Actually, I have to specify each parameter with complete URL like :

<parameter name="transport.vfs.FileNamePattern">.*.txt</parameter>

我看到一些带有属性调解器的示例,我猜它适用于下一个代理,但这里的问题是我认为我需要在代理参数值执行之前更改它.我尝试使用触发器"代理调用自定义调解器,该调解器更改所需代理的 SynapseConfiguration 但这不起作用.

I see some samples with property mediator and I guess it's working for next proxies but the problem here is that I need to change the proxy parameters value before its execution I think. I tried with a "trigger" proxy calling a custom mediator which change SynapseConfiguration of required proxy but this wasn't working.

有没有办法用查找替换这些固定值来创建一些部署配置?

Is there a way to replace these fixed value with lookups to create some deployment configuration ?

非常感谢.

推荐答案

Proxy 服务定义中的参数是 Axis2Service 配置中的服务级别参数.它们在您初始化 Axis2Service 时使用,在这种情况下,它是 Synapse/WSO2 ESB 代理服务.所以你不能动态地改变参数.

The Parameters in the Proxy service definitions are service level Parameters which is in the Axis2Service Configuration . They are used when you are initialing the Axis2Service in this case its the Synapse/WSO2 ESB proxy service. So you can't change the parameters dynamically on the fly.

但我可以建议以下方法.它可能适用于您的方案,也可能不适用.

But i can suggest following approach. It might or might not applicable to your scenario.

有一组 VFS 代理来侦听不同的位置.每个人都会查看一个给定的文件扩展名.(一个用于 .txt 一个用于 .foo 等)

Have set of VFS proxies that listen for separate locations. Each will look at a give file extension. (one for .txt one for .foo etc..)

使用另一个通用 vfs 代理将文件动态复制到正确的位置(它接受任何扩展名).(您可以使用 vfs 发送器).

Use another generic vfs proxy to copy files to correct places dynamically(which accepts any extension).(You can use vfs sender).

希望这会有所帮助.

干杯,慈善机构

这篇关于WSO2 ESB - 代理参数的动态值(传输)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆