Solved

how to import game dynamically to server?

Posted on 2004-09-13
7
180 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
ID: 12042753
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
ID: 12042761
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
ID: 12042762
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 18

Expert Comment

by:armoghan
ID: 12042764
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
ID: 12043257
It is not needed to implement own classloader. You can simply use the URLClassLoader class.
0
 

Author Comment

by:software222
ID: 12054874
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
ID: 12073404
:)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

830 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