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 6645809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:20:08+00:00 2026-05-26T00:20:08+00:00

I have to implement a simple tour client-server game in Java. Unfortunately, I’m just

  • 0

I have to implement a simple tour client-server game in Java. Unfortunately, I’m just beginning with network programming and have some problems with choosing an apropriate solution.

Let’s assume I’m creating a chess game where two clients can connect to the server, authenticate with their username and passwords and play. The clients must be programmed as applets (thin clients), but I don’t know what I should use as a server.

I mean, I’ve read about several different possibilities like RMI, sockets, servlets, but still don’t know which one fits bets my needs. I’m a bit confused because I don’t fully understand how the communication would be carried out.

Should I create an executable server which would run all the time on the server and wait for the players? This seems to me like an odd way. Or is there any easier way to do so, e.g. can I make a servlet and put it on Tomcat server so that the server would be run only if there are any players? Could that servlet communicate with applets (clients) and vice versa?*

I’d be really grateful for some tips.

  • 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-05-26T00:20:08+00:00Added an answer on May 26, 2026 at 12:20 am

    can I make a servlet and put it on Tomcat server so that the server would be run only if there are any players

    The Tomcat instance would run anyways, otherwise players couldn’t connect to it.

    What you could do is to provide a server that starts a new game instance when players connect. The server itself would have to always run.

    In terms of technology, I’d suggest you use whatever you feel comfortable with. Don’t care about performance yet but try and get started.

    So if you already have some knowledge with a communication technology, try and use that. Just be aware of the limitations and take those into account (e.g. message formats, push/pull communication etc.).

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

Sidebar

Related Questions

I have implement the simple TCP server and TCP client classes which can send
In general, is it a best practice to have simple POJO Java classes implement
I have to implement a simple file download client in PHP capable of downloading
I am working to implement some simple preferences to an app I have and
I have just started using EF Code First to implement a simple blog. I
I have to implement the VinPower application. They offer a Java version, a C
I am working on a college project, where I have to implement a simple
i have implement a simple web service the method signature of web service is:
Hello all I have class that inherited from Qtreeview and I implement simple (
I am trying to implement simple paging on my sharepoint webpart. I have a

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.