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

查看:172
本文介绍了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 ?

非常感谢.

推荐答案

代理服务定义中的参数是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天全站免登陆