WSO2 MI 部署主序列

huangapple go评论90阅读模式
英文:

WSO2 MI deploy main sequence

问题

我想要修改默认的主序列。我创建了一个名为main的序列,但在部署到微积分器时遇到了问题。我收到了以下错误:

[2023-02-27 09:23:03,087] ERROR {SequenceDeployer} - Sequence named : main already exists. [2023-02-27 09:23:03,088] ERROR {SequenceDeployer} - Sequence Deployment from the file : /home/wso2carbon/wso2mi-4.1.0/repository/deployment/server/synapse-configs/default/sequences/main.xml : Failed. org.apache.synapse.deployers.SynapseArtifactDeploymentException: Sequence named : main already exists.

对此我该怎么办?

英文:

I want to change the default main sequence. I created a sequence with the name main, and I have a problem with deploy to the micro integrator. i get the following error:

[2023-02-27 09:23:03,087] ERROR {SequenceDeployer} - Sequence named : main already exists.
[2023-02-27 09:23:03,088] ERROR {SequenceDeployer} - Sequence Deployment from the file : /home/wso2carbon/wso2mi-4.1.0/repository/deployment/server/synapse-configs/default/sequences/main.xml : Failed. org.apache.synapse.deployers.SynapseArtifactDeploymentException: Sequence named : main already exists.

What can I do with this?

答案1

得分: 1

所有不需要发送到代理服务、REST API或入站端点的消息默认都会通过主序列发送。如果您需要为特定的API或服务添加中介逻辑,最好创建一个具有不同名称的新序列并使用它。

如果您需要更改上述默认行为,需要更新位于以下位置的现有主序列(main.xml):

<MI_HOME>/repository/deployment/server/synapse-configs/default/sequences

您可以添加中介器或在主序列中引用已命名的序列。

参考链接:

关于主序列:https://ei.docs.wso2.com/en/latest/micro-integrator/references/synapse-properties/sequence-properties/#main-sequence

已命名的序列:https://ei.docs.wso2.com/en/latest/micro-integrator/develop/creating-artifacts/creating-reusable-sequences/

英文:

All messages that are not destined for a proxy service, REST API, or inbound endpoint are sent through the main sequence by default. If you need any mediation logic for a specific API or service, it's better to create a new sequence with a different name and use it.

In case, you need to change the default aforementioned default behaviour, you need to update the existing main sequence(main.xml) in the following location,

&lt;MI_HOME&gt;/repository/deployment/server/synapse-configs/default/sequences

You can either add mediators or refer to named sequences within the main sequence.

References:

About Main Sequence: https://ei.docs.wso2.com/en/latest/micro-integrator/references/synapse-properties/sequence-properties/#main-sequence

Named sequences: https://ei.docs.wso2.com/en/latest/micro-integrator/develop/creating-artifacts/creating-reusable-sequences/

huangapple
  • 本文由 发表于 2023年2月27日 17:30:38
  • 转载请务必保留本文链接:https://go.coder-hub.com/75578719.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定