Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Multiple User's Data

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Thanked 0 Times in 0 Posts

    Question Multiple User's Data

    I am working on a program that has Multiple users, using it at the same time.

    Loading and saving data is not the issue, my problem is how can each user have it's own unique data while they are online .... constantly reading - writing data from file is a huge resource hog.
    Lets simplify things and say each person has:

    Integer Health;
    Double Money;
    String Rank;
    Integer Experience;

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 833 Times in 772 Posts
    Blog Entries

    Default Re: Multiple User's Data

    If the data needs to be shared between users, use a SQL database of some sort, communicating via JDBC

    Trail: JDBC(TM) Database Access (The Java™ Tutorials)

Similar Threads

  1. How to get user's browser serial number using JSF?
    By rcbandit2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 26th, 2011, 09:52 PM
  2. Multiple errors - Reading data from a file and using a GUI to display
    By toledospod in forum File I/O & Other I/O Streams
    Replies: 5
    Last Post: December 1st, 2011, 09:34 AM
  3. multiple access to same data in database
    By the light in forum JDBC & Databases
    Replies: 1
    Last Post: August 23rd, 2011, 10:19 AM
  4. array to store multiple names and data
    By u-will-neva-no in forum Java Theory & Questions
    Replies: 2
    Last Post: May 6th, 2011, 05:03 AM
  5. [SOLVED] Web portal accessing files on the user's system via the Java I/O stream?
    By rendy.dev in forum Web Frameworks
    Replies: 2
    Last Post: January 18th, 2010, 08:46 PM