wso2 / docs-apim

Apache License 2.0
70 stars 395 forks source link

Axis2.xml configuration reset at startup for api-devportal profile #497

Closed Khelnor closed 3 years ago

Khelnor commented 4 years ago

I setup a WSO2 3.0.0 instance with the profile api-devportal. When I launch the profilesetup.sh for this profile, axis2.xml file is modified correctly by commenting two transportSender:

INFO - Disabled the <transportSender name="ws" class="org.wso2.carbon.websocket.transport.WebsocketTransportSender"> from axis2.xml file INFO - Disabled the <transportSender name="wss" class="org.wso2.carbon.websocket.transport.WebsocketTransportSender"> from axis2.xml file

But when I start the instance with the profile api-devportal, axis2.xml configuration is dropped and those two tags are uncommented.

kavishkafernando commented 4 years ago

Hi @Khelnor

The configurations in APIM-3.0.0 is now done in the deployment.toml file. The default configuration xml files get overriden by the configurations specified in the deployment.toml file.

Please add the following configurations in the deployment.toml file found in /repositorty/conf

[transport] wss.sender.enable=false ws.sender.enable=false

tmkasun commented 4 years ago

You could find more information about configuration parameters in our Configuration Catalog.

Khelnor commented 4 years ago

Thanks for the information. But the transport configuration is not listed in the catalog documentation. Do you have a complete documentation of the configuration that can be override through the TOML file ?

Maybe you can put this tansport configuration in the default template of the devportal TOML.

kavishkafernando commented 4 years ago

We will add the configuration to the Configuration Catalog.

Mariangela commented 4 years ago

@ruthryi , pls check if this is already there atm.