Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8431693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:55:27+00:00 2026-06-10T05:55:27+00:00

I have to make an university project that involves a client/server architecture. There should

  • 0

I have to make an university project that involves a client/server architecture.

There should be a server where a client can login and search or save some stuff.

What’s the best way to implement a stuff like that?

I think it can be done using RMI or ServerSockets or even WebServices, but what’s the easiest way to implement this project?

Using Web Sevrvices i think it can be troublesome the authentication/session handling, using ServerSockets i have done some tests where i pass some custom serialized objects, but It doesnt seem to me a good way to go.

Any help is appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:55:28+00:00Added an answer on June 10, 2026 at 5:55 am

    Since this is a project for university I will not post an solution, but give you an good direction.

    The most basic Way (what may be a good thing for a university project, and for understanding th whole matter…) would be with the Server listening in his Mainthread on a ServerSocket for Requests to connect to the Server and then for every (correct) Request (you need to specify somehow what is correct in this case) starting a new Thread with a Socket connected to the Client. This Threads should be hosted in some sort of List or whatever in the Mainthread of the Server…

    Update:

    So if this Server provides different functionalities to its clients, which are of course methods in our Server Code, you can specify the Objects which are crated when a new Client connects (I’m calling these “ClientServerConnection” from now on, and which run in its own Thread) in the Way that the Server Object is passed to it, so if one of the “ClientServerConnection”s get a Request for whatever they can call the matching method on the Server-Object and give an according response to the client…

    Here some pseudo-code:

    in Server:

    //request for Connection came in 
    ClientServerConnection csc = new ClientServerConnection(this, "and everything you need, at least client IP for connecting the socket");
    csc.run(); //running in its own thread, of cause ClientServerConnection should extend Thread
    connectionList.add(csc); //a list of the connections the Server holds
    

    in ClientServerConnection:

    //A request to the use a functionality of the Server come in, in the easiest way you are sending a String, and than trying to match it here
    if(recievedString=="doWhatever"){
    Server server.doWhatever(); //calling the according method on the Server Object you passed by creation of the ClientServerConnection Object
    //now return something to the client, according to whatever the Method did 
    }else if(recievedString=="doSomethingElse"){
    //same again, according to whatever the now requested method does
    }else{
    //the client requested something you do not provide, need some sort of handling here
    }
    

    Hope I got you right and this helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my university a have to make a project: XMPP client on Adobe Flex.
I'm currently self-studying C for mastering an university project. In that project we have
I have read in books and heard at university that methods should not exceed
I have make a messaging system in which user can send messages to each
Using this sample : I have make my own Fragment that holds tabhost and
I have to make a page that look like painting below, but: field 1
I have to make a conditional in ash, that depends on result of two
For a university course I have to write a http server which is supposed
I have been designing a game for a University project, and I thought it
My project is a visitor app for a University, that basically displays places and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.