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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 2 of 2

Thread: Does RMI require separate threads

  1. #1
    Member
    Join Date
    Nov 2009
    Posts
    57
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Does RMI require separate threads

    Hi

    I am still learning Java and I am venturing into RMI.

    As a test I have a RMI server (runs the RMI registry and a class which records detail in a JDBC connected mysql database). I also have two individual clients (totally seperate machines which are networked).

    All my code does is to send the current computer name and current logged on user back to the RMI server so this can record this detail into the mysql database.

    My question is that what would happen if there are say around 100 clients all trying to send an RMI message back to the server.

    Will the server handle all 100 requests in their own threads allowing all details to be sucessfully recorded in the database or will I need to create a thread for each request?

    I am a bit worried that if say for example that for some reason that all 100 clients send their request at the exact same time that some of the request may not be successful.


  2. #2
    Member
    Join Date
    Nov 2009
    Posts
    57
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Re: Does RMI require separate threads

    For Info, i have looked this up and it looks as though actions performed from RMI messages are ran in their own thread per client.

Similar Threads

  1. Replies: 0
    Last Post: August 31st, 2012, 03:43 AM
  2. [SOLVED] KeyListeners Require Focus...
    By snowguy13 in forum AWT / Java Swing
    Replies: 2
    Last Post: January 6th, 2012, 08:15 AM
  3. Code require for Drag and drop
    By anujbatta in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 25th, 2011, 07:54 AM
  4. separate strings
    By ridg18 in forum What's Wrong With My Code?
    Replies: 10
    Last Post: January 21st, 2011, 06:22 AM
  5. Replies: 5
    Last Post: December 13th, 2009, 07:10 PM