wood burning stoves*
The moose likes JSP and the fly likes Java Web application in Online/Offline mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Java Web application in Online/Offline mode" Watch "Java Web application in Online/Offline mode" New topic
Author

Java Web application in Online/Offline mode

nilk yeo
Greenhorn

Joined: Jun 07, 2010
Posts: 4
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?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
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

Java Resources at www.wbrogden.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web application in Online/Offline mode
 
Similar Threads
PDA application for querying a database driven site
Online offline solution in Java
Synchronizing two databases!
Java Web application in Online/Offline mode
building a semi-connected application