?
Solved

how to import game dynamically to server?

Posted on 2004-09-13
7
Medium Priority
?
187 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 1500 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month17 days, 9 hours left to enroll

831 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