Results 1 to 4 of 4
  1. #1
    gtech1 is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Would this be possible with Java ?

    I have a web application where I can store my office files ( Word, Excel ). For this web application we have a Java applet that is able to download the Word file and open it up locally in Word. When I am done editing the file locally, clicking on Save File in Word, automatically re-uploads the file to my online web application.

    This works great but I want to take it one step further.

    Say that two or more users want to edit the file at the same time. I want the Java Applet to continuously monitor changes done to the file by any user, and mirror those changes to the other users that have the file open.

    Is something like this possible with a Java Applet ?

    We need this mainly for Word/Excel files.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: Would this be possible with Java ?

    I doubt that java can keep track of the internal workings of a MS product.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Would this be possible with Java ?

    An interesting problem arises as you ensure consistency.

    Suppose Alice pastes "Alice" at the start of a line while Bob pastes "Bob" at the same place (ie the start of the line). The two applets are going to have a hard time agreeing what the outcome should be. Alice might see the line changed to start with "Bob" after doing the update to insert "Alice", but Bob might see the line changed to start with "Alice" after doing the update to insert "Bob".

    A common approach is for a server to impose a linear ordering on things. Both Alice and Bob post their changes to a server, and the server integrates them into the document and informs all of the recipients of the changes. Google's now defunct (but opensourced) Wave did this, but also allowed each client to assume that their changes were "valid" until told otherwise by the server.

    Etherpad is an opensource document collaboration program. Codoxware offers something similar for Word Excel etc, but I have never used that.

  4. #4
    gtech1 is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: Would this be possible with Java ?

    Quote Originally Posted by pbrockway2 View Post
    An interesting problem arises as you ensure consistency.

    Suppose Alice pastes "Alice" at the start of a line while Bob pastes "Bob" at the same place (ie the start of the line). The two applets are going to have a hard time agreeing what the outcome should be. Alice might see the line changed to start with "Bob" after doing the update to insert "Alice", but Bob might see the line changed to start with "Alice" after doing the update to insert "Bob".

    A common approach is for a server to impose a linear ordering on things. Both Alice and Bob post their changes to a server, and the server integrates them into the document and informs all of the recipients of the changes. Google's now defunct (but opensourced) Wave did this, but also allowed each client to assume that their changes were "valid" until told otherwise by the server.

    Etherpad is an opensource document collaboration program. Codoxware offers something similar for Word Excel etc, but I have never used that.
    Thank you for that.

    Deciding on that kind of details would be simply a server-side technicality. The main question is however, can a Java applet continuously monitor the changes done to a MS document and update a server in real-time with those changes ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •