on 12-17-2015 9:42 AM
Hello,
I have a UI5 application which calls a Gateway function import that takes a veeery long time to compute something. Therefore the client browser receives a connection timeout from the SAP NetWeaver backend while the computation is still running.
What is the best approach to prevent this timeout?
Best regards,
Björn
P.S.: The system is a NetWeaver 7.40 SP8
Websocket is definitely an option.
Another option
If it is really a time consuming job, keeping your conditions in mind,
I think you can use a batch job in backend to do that computing and store in a custom table. You can poll every 30 seconds from your UI5 app to check if the result is available/ready.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bjoern, how long is very long? All browsers have http client timeout limitations so you wont be able to avoid that.
http://stackoverflow.com/questions/5798707/browser-timeouts
It seems you might need to redesign your application if you want to avoid the timeout. You can go with websocket -> then it wont be anymore REST/ODATA/GW approach.
Yevgen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.