• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Web application in Online/Offline mode

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a java web application developed using Spring MVC, Hibernate, Oracle DB.
However, now I need to make this application to work both in Offline & Online mode.

That means, user should be able to work offline and when he comes online,
there should be automatic synchroniztion between local data & the server data.

Which technolgies/approach should I follow to achieve this?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might try looking into Web Start - for which the ranch has a forum.

Another possibility is just a desktop application that knows how to act like a web browser - see the apache httpcomponents tools.

Bill
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the app exists already, be prepared to spend major time re-architecting it. An offline mode is not something you can easily add after the fact. Google had a browser plugin called Google Gears that helped implement offline web apps, but its development has been halted in favor of some related technologies that are coming in HTML 5.

An alternative might be to ship a desktop app that has an embedded servlet container with the complete web app running inside it. If a network connection was available, it would get its data from the "live" database, and if no connection is available, it would work with a local copy. This would reduce the problem to a data synchronization issue, for the most part.
 
Just the other day, I was thinking ... about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic