No, not really. Since both of your async command actions would be operating on the same managed bean objects, there would be a risk of data update collisions if both were allowed to execute concurrently.
There are a couple of options:
-
Do both the webservice calls with a single async command request.
-
Have the async command handlers spawn worker threads to do the the webservice calls in the background on the server side. When the worker threads complete their activity, you could raise an OpenAjax event to notify the client that the data is ready. The client-side OpenAjax event subscription would respond to the event by refreshing the controls from your portlet to render the webservice results.
#webMethods#webMethods-BPMS#MWS-CAF-Task-Engine