Solved

how to import game dynamically to server?

Posted on 2004-09-13
7
179 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

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