Solved

how to import game dynamically to server?

Posted on 2004-09-13
7
177 Views
Last Modified: 2010-03-31
Hi, everybody

Currently, I'm having to make a project about game server. My idea is My app can import game from package from client to server but server not need restart. Can my idea implement. If ok , please help me detail
0
Comment
Question by:software222
7 Comments
 
LVL 35

Expert Comment

by:girionis
Comment Utility
If you are talking about dynamic class downloading then yes, it can be done, use RMI: http://java.sun.com/developer/onlineTraining/rmi/RMI.html
0
 
LVL 18

Expert Comment

by:armoghan
Comment Utility
Didnt get the problem properly.
But it seems that you need to start a client.
For that you can make the application a web start application and clients can download it from the server.
0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
Comment Utility
For not restarting the server you will also need to implement your own classloader: http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 18

Expert Comment

by:armoghan
Comment Utility
client can be an applet based as well and you can do the applet servlet communication to run the game
0
 
LVL 9

Expert Comment

by:Venci75
Comment Utility
It is not needed to implement own classloader. You can simply use the URLClassLoader class.
0
 

Author Comment

by:software222
Comment Utility
My game server include 2 actor: admin, gamer. All use Client 's GUI. Server hasn't GUI, it must start first.
My Application is  not applet,web, not RMI,it use socket and serversocket, TCP/IP. Client and Server exchange information use messages. Client's Admins can send  game_package from client's computer to server's computer. Server automatically identify client's package and (load)execute it.When Gamer's Client start, it must know there is a new game on server. When gamer chose a game, client automatically download class files for that game( for execute in client) and automatically execute it.  And i think i like "classloader"
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
:)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now