Foren

How to create a portlet which can work offline?

thumbnail
Dai Van Nguyen, geändert vor 9 Jahren.

How to create a portlet which can work offline?

New Member Beiträge: 5 Beitrittsdatum: 07.10.13 Neueste Beiträge
Hello,
I want to create a portlet which can work offline when disconnected internet. Then when internet connected, the system synchronize data with server automatically. Do you have suggestion for me? Could anyone help me the problem?
Oliver Bayer, geändert vor 9 Jahren.

RE: How to create a portlet which can work offline?

Liferay Master Beiträge: 894 Beitrittsdatum: 18.02.09 Neueste Beiträge
Hi Dai,

I think this is not directly a Liferay question but I will try to give you some hints on where to start from. As a first step you would have to save the data you want to synchronize to a local database. Next create a quarz timer which checks for internet connection (maybe by ping or wget an internet url). If your Liferay portal is connected to the internet run the insert/ update statements (created by the contents of your local/ temp database) at the remote database and remove the entries from the local db.

HTH Oli
thumbnail
Dai Van Nguyen, geändert vor 9 Jahren.

RE: How to create a portlet which can work offline?

New Member Beiträge: 5 Beitrittsdatum: 07.10.13 Neueste Beiträge
Thank you! I studied, now i use html5 for resole the problem.