Need script to deploy, undeploy apps and get list of installed apps

时间:2015-05-08 10:03:49

标签: wso2 wso2esb

  1. Is there any way to get list of installed CARs and reading meta-data (version, etc..) on wso2esb beside web-interface? I want to use it in jenkins script.
  2. I found jenkins plugin for deploying CARs. How can I remove some installed car?

1 个答案:

答案 0 :(得分:0)

您可以使用OSGI Web服务执行大量管理任务。

要获取服务列表,请在OSGI控制台模式下启动服务器:

./wso2server.sh -DosgiConsole

服务器启动后,您可以列出所有可用服务:

osgi> listAdminServices

现在您可以看到SOAP服务的所有URL(端点)。这取决于您使用CAR部署的内容,但我假设您可以使用“SynapseApplicationAdmin”,“RestApiAdmin”或“ApplicationAdmin”服务。

我在这里找到了“ApplicationAdmin”WSDL:https://svn.wso2.org/repos/wso2/carbon/platform/trunk/service-stubs/org.wso2.carbon.application.mgt.stub/src/main/resources/ApplicationAdmin.wsdl

在此服务中,您可以使用操作,例如

  • listAllApplications
  • deleteApplication