Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving objects from a server.

 
Antonio Principato
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not really sure of the best way to go about this but let me explain my goal. I want the client to store reference numbers. Say the client passed an integer to the server and lets say the number was 1234. I want the server to send back the object that corresponds to 1234. I need the method to accept multiple clients at once.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With out any more to go on in terms of requirements, constraints, use cases, scale, etc., it sounds like a good case for a database. However, the "server" could take any form you need it to.
 
Antonio Principato
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured a database would be the best way to go about it but I'm not sure where to start. There seems to be many different approaches to this and i was wondering if someone can show me the way. The client would start and prompt a user for login credentials (I assumed i can just create a database just to authorize logins) as the user logs in the client receives the object from the server.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic