Hi,
I am working on creating SmartGWT datasources for a legacy application.
I am using server-side integration, with DMI calls.
This works well when the API that provides the actual data is synchronous,
but in my case, there are some asynchronous calls as well, which return the data via callbacks.
What is the recommended approach in this case?
When I get a DSRequest, I must answer with a DSResponse synchronously. Should I manually spawn a new thread (and wait for the asynchronous callbacks to arrive), or is there a better solution?
Thank you for your help:
Csillag
I am working on creating SmartGWT datasources for a legacy application.
I am using server-side integration, with DMI calls.
This works well when the API that provides the actual data is synchronous,
but in my case, there are some asynchronous calls as well, which return the data via callbacks.
What is the recommended approach in this case?
When I get a DSRequest, I must answer with a DSResponse synchronously. Should I manually spawn a new thread (and wait for the asynchronous callbacks to arrive), or is there a better solution?
Thank you for your help:
Csillag
Comment