首页 文章

集群中的WSO2自定义处理程序

提问于
浏览
0

在群集中,WSO2 APIM在哪里存储配置文件,在非群集部署中保存在以下位置:

<wso2_home>/repository/deployment/server/synapse-configs/default/api

我在WSO2的集群部署中通过Publisher发布了一个Ticket API,但是't found the corresponding ' doc,TicketAPI_v1.0.xml ' file anywhere. The clustering guide creates several databases. Would this xml file be stored in any of the WSO2 databases? If so, where? What I need to do is to add Custom Handlers to my API by adding to the 144352 section of the ' admin - TicketAPI_v1.0.xml'文件,如Writing Custom Handlers doc中所述 . 如何在群集部署中完成?

2 回答

  • 0

    您应该能够在网关节点中找到admin - TicketAPI_v1.0.xml文件

    /资料库/部署/服务器/突触CONFIGS /默认/ API

  • 1

    您的管理员 - TicketAPI_v1.0.xml文件应该位于其中一个网关工作节点中 .

    但是,在将自定义处理程序引用到选定的API时,不建议通过源视图UI或文件系统更新API源代码,因为自定义项会被发布者更新覆盖 .

    因此,建议的方法是将您编写的自定义处理程序添加到/repository/resources/api_templates/velocity_template.xml中的velocity_template.xml中 .

相关问题