[Home] [Groups] - Message: [Prev in Group] [Next in Group]
23841: Re: [MUD-Dev] Question about copyovers.
[Full Header] [Plain Text]
From: Oliver Jowett <oliver@randomly.org>
Newsgroups: nu.kanga.list.mud-dev
Date: Sat, 18 May 2002 13:41:26 +1200
References: [1] [2] <-newest
Organization: Kanga.Nu
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@randomly.org - http://www.randomly.org/people/oliver/
_______________________________________________
MUD-Dev mailing list
MUD-Dev@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev