Seems like the WebClient isn't really what you need. If there is no UI to present to the user, and you just need to trigger a Servoy Method, use the RESTful web services instead.
So, instead of: {serverUrl}/servoy-webclient/ss/s/{solutionName}/m/{methodName}/a/{value}/varA/{value1}/varB/{value2}
use: {serverUrl}/servoy-service/rest_ws/{solutionName}/{formName}/{value1}/{value2}
Then on the form {formName}, create a function like:
- Code: Select all
function ws_read(arg1, arg2){
//do your stuff
//then return
return {success: true}
}
The advantage here is in the {serverUrl}/servoy-admin/plugin-settings , under RESTful Web Services Plugin, you can adjust the pool of clients you'd like to use to control how many can be open at once. For example, these settings would tell it to use as many as it needs, but once it doesn't need them any more, close them and only keep 1 open to handle new requests.
- Code: Select all
rest_ws_plugin_client_pool_exhausted_action: grow
rest_ws_plugin_client_pool_size: 1