Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  many applets accessing one writing servlet ...  (Read 680 times)
0 Members and 1 Guest are viewing this topic.
Offline Serethos

Sr. Member
**

Posts: 302


Java games rock!


« on: 2004-06-28 14:47:21 »

i have a game - applet which includs a highscore. to save the scores permanently theres also a servlet for accessing the server resources. so if theres a new highscore reached the applet sends it to ther servlet, which writes the score in a txt-file on the server.
but im smelling problems if several applets are running at the same time:
for each applet instance a unique servlet connection is created for highscore entry. so only crap would happen if one connection writes to the file, another one reads at the same time and so on.

how can i safely synchronize the data ?

btw: for this project i have no access to a database (which would make many problems obsolete ...)
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.101 seconds with 20 queries.