[MUD-Dev] Question about copyovers.

Oliver Jowett oliver at randomly.org
Sat May 18 13:41:26 CEST 2002


On Wed, May 15, 2002 at 11:44:20PM -0600, Kwon Ekstrom wrote:

> Me and Scion Altera have spent alot of time working on Copyover
> ideas for a java based mud, so if anyone solves the problem,
> there's definitely interest.

If you don't requite a new VM, you could probably play with
classloaders and "restart" the mud in the same VM with new code.

i.e. the top-level code explicitly loads the core mud code in a
separate (non-system) classloader; on copyover, you pass the Socket
objects back out & the top level loads the new code in a new
classloader and invokes it with the existing connections & whatever
additional state is needed.

You might have problems with references held to the "old" version at
the system level -- outstanding threads and anything in the system
libs that hold references. I *think* singletons in the mud code will
be ok, as you get a new copy of the class & therefore a new
singleton.

Haven't tried it myself, though..

--
Oliver Jowett - oliver at randomly.org - http://www.randomly.org/people/oliver/
_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list