Results 1 to 13 of 13
Like Tree1Likes
  • 1 Post By JosAH

Thread: Can I create a prgram that can allow 100 users to access a same account?

  1. #1
    Tawi is offline Senior Member
    Join Date
    Feb 2013
    Posts
    123
    Rep Power
    0

    Default Can I create a prgram that can allow 100 users to access a same account?

    I want to create this with the Netbeans and 100 users must be able to log in and access this program with a same username and password simultaneously, can I do that? Do I need to consider the hardware at the time I create this? Can I do this with another programming language?
    Last edited by Tawi; 02-04-2016 at 05:47 PM.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    Yes, you can do it. Essentially you need to implement a server which listens to incoming connections and then spawns off a process to handle the user interaction. But the users will access a copy of the program. They can't all access the same instance. And this has nothing to do with NetBeans. Solutions are language dependent, not IDE dependent.

    Regards,
    Jim
    Last edited by jim829; 02-04-2016 at 06:39 PM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Tawi is offline Senior Member
    Join Date
    Feb 2013
    Posts
    123
    Rep Power
    0

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    Quote Originally Posted by jim829 View Post
    Yes, you can do it. Essentially you need to implement a server which listens to incoming connections and then spawns off a process to handle the user interaction. But the users will access a copy of the program. They can't all access the same instance. And this has nothing to do with NetBeans. Solutions are language dependent, not IDE dependent.

    Regards,
    Jim
    Can you give me an example in a Java Programming language or another programming language about how to do that? If I want to create a program that is similar with the MetaTrader program and 100 users log into the program with a same username and password simultaneously, can I do that? If all of the users buy and sell simultaneously at the same price level can I update the program and make all of the users that log in with a same username and password to simultaneously see the update and able to purchase or sell at the same price level? Well, let we say that Gold is US$ 1156.0/t. oz dan the price can be higher so all of the 100 users that log into the program with a same username and password want to purchase gold at the same price level at the same time, can I make the program to make them able to do that, do appropriate respond such as sending the users' action to the server that is handling this and display the result of the action from all of 100 users to all of these 100 users and any of the necessary person who need to see these actions?
    Last edited by Tawi; 02-05-2016 at 02:55 AM.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    How are these 100 users going to purchase at the same time?
    That would require coordination between 100 people wouldn't it?

    What is the purpose of the same username (presumably the same account)?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    Good point! As the saying goes, "The devil is in the details."

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  6. #6
    Tawi is offline Senior Member
    Join Date
    Feb 2013
    Posts
    123
    Rep Power
    0

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    I was offering an offer that was impossible to be completed without a team. Because of this, the user must be able to get a team so he can instruct the team to do the things that he wants the team to do and because I do not allow the user to split the account, the team will use the same username and password, how to do that? Can you give me a good example?
    Last edited by Tawi; 02-06-2016 at 03:49 PM. Reason: A wrong grammar.

  7. #7
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    I can't provide an example because it is still not clear to me what your goal is. I can sort of understand using the same account for a read only system. No conflicts arise because no changes are made. It is still problematic because you then can't exclude an individual if you would want to.

    But for an interactive system that allows changes I can't think of any real example for a shared single user account. It is simply not a good practice.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  8. #8
    Tawi is offline Senior Member
    Join Date
    Feb 2013
    Posts
    123
    Rep Power
    0

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    Quote Originally Posted by jim829 View Post
    I can't provide an example because it is still not clear to me what your goal is. I can sort of understand using the same account for a read only system. No conflicts arise because no changes are made. It is still problematic because you then can't exclude an individual if you would want to.

    But for an interactive system that allows changes I can't think of any real example for a shared single user account. It is simply not a good practice.

    Regards,
    Jim
    Yes, it is true for a normal account but in this case, without having a team, the user will not be able to complete the task. Can you give me a good example about a short program that can make 100 users to log into an account with a same username and password?

  9. #9
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    I can't give you an example because I would need more information. But the kind of example I would try to give would be a real world example, if one exists. I will not provide any code. That is not how this site works.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  10. #10
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,423
    Blog Entries
    7
    Rep Power
    27

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    In all my naivity I'd think that if you want 100 users to be able to buy or sell gold for the same price, it would be equivalent to have one single user to buy or sell hundred times as much gold ...

    kind regards,

    Jos
    jim829 likes this.
    Build a wall around Donald Trump; I'll pay for it.

  11. #11
    Tawi is offline Senior Member
    Join Date
    Feb 2013
    Posts
    123
    Rep Power
    0

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    Quote Originally Posted by JosAH View Post
    In all my naivity I'd think that if you want 100 users to be able to buy or sell gold for the same price, it would be equivalent to have one single user to buy or sell hundred times as much gold ...

    kind regards,

    Jos


    Almost correct but you will have to remember that you are almost correct if you only want to make the user create a few purchase or sell orders. If you want to make the user create 100,000,000 purchases or sells in a year, you will not be able to make the user do that alone. How fast do you think a human can create a click? So, he or she will need a team and the software must be able to handle this, send the clicks to the server that is handling these clicks, and display the results to all of the users who need the results, how to do that?
    Last edited by Tawi; 02-06-2016 at 08:04 PM. Reason: A wrong grammar.

  12. #12
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    13

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    So it appears to me that you want to create some service where 100 people you trust can trade various stocks for a single user. And since theoretically, one could buy millions of shares with a single click, you must be talking about very small amounts of a variety of different stocks. As long as we are not being realistic here (no one imho would do that), why not simply write a program to analyze a variety of stocks and have the program trade them for you automatically? I would trust the program more than 100 people. But I will still lose my shirt in the process.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  13. #13
    Tawi is offline Senior Member
    Join Date
    Feb 2013
    Posts
    123
    Rep Power
    0

    Default Re: Can I create a prgram that can allow 100 users to access a same account?

    Quote Originally Posted by jim829 View Post
    So it appears to me that you want to create some service where 100 people you trust can trade various stocks for a single user. And since theoretically, one could buy millions of shares with a single click, you must be talking about very small amounts of a variety of different stocks. As long as we are not being realistic here (no one imho would do that), why not simply write a program to analyze a variety of stocks and have the program trade them for you automatically? I would trust the program more than 100 people. But I will still lose my shirt in the process.

    Regards,
    Jim
    Ok, how to do that for your suggestion?
    How to create a program that can allow 100 users access the program with a same username and password?

    I still want to create this program without any automatic ability because they have to think about that themselves. I do not provide such feature, how to do that? I am not the user of the program. The other will use the program so they will have to think about that by themselves, how to do that?

Similar Threads

  1. Create database connection which accessible for all users
    By mohsen.noor in forum Java Servlet
    Replies: 2
    Last Post: 11-24-2014, 01:52 PM
  2. create users on the server site?
    By nakres in forum New To Java
    Replies: 2
    Last Post: 03-25-2011, 09:31 AM
  3. Create a java class for a bank account!!?
    By singh345 in forum New To Java
    Replies: 1
    Last Post: 03-17-2010, 04:26 PM
  4. Using java to access internet account
    By elgem in forum Advanced Java
    Replies: 3
    Last Post: 01-18-2009, 06:49 PM

Posting Permissions

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