long polling - Liferay Unsychnonized message listener, Send message to page after complete backend operation -
i have implemented liferay asynchronous messagelistener
1 task, takes 20 minutes, reason why using message listener.
but requirement that, after finish back-end process i have show success message user "your info loaded...". don't want utilize ajax polling
please suggest me:
how can stuffs in liferay? there long polling procedure in liferay?
ps: using liferay 6.1.2-ce-ga3
as reference, used doc: https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/lp-6-1-dgen09-using-message-bus-0
if don't want utilize ajax, i'd recommend implement "current status". whenever portlet displayed can display if operation still executing or if has completed. how figure out? well, that's part of backend implementation, not portlet level, that's ui.
with this, extend ui status list updated through ajax, incidently not hard, 1 time you're ready go ajax.
on frontend, don't want long polling http requests open through application server - if you're looking this.
there's mechanism liferay's chat portlet , notification portlet use, called poller. however, ajax, don't know if qualifies requirements. check this forum post, note, it's quite old , mentioned bug seems fixed. don't know if developer guide has chapter on well, name i'm confident can find more info
liferay long-polling message-listener
No comments:
Post a Comment