On 2002.02.04 20:42:58 -0500 Andreas Schaefer wrote:
> Hi Geeks
> 
> Some time ago I was discussion the new JBoss
> features and I told him about the new dynamic
> classloader in JBoss. He then asked me what
> happens with Class-variables when we drop
> the old class and load the new class. My guess
> was that they were lost, is this correct ?

yes
> Do we have to take care about this by transfering
> the values if possible ?
> Or do we just tell the users not to use class
> variables when they are going to redeploy classes ?

yes

jpda 1.4 (in jdk 1.4) appears to have some support for reloading classes
dynamically through, well, jpda, and it appears that sometimes both classes
and objects may preserve their values.  Personally I think this is a neat
debugger trick but would hesitate to rely on it in any other circumstance. 
There's been some discussion of this on the ant list- someone is writing an
ant task to control this process.

david jencks
> 
> Have fun
> 
> xxxxxxxxxxxxxxxxx
> Andreas Schaefer
> Senior Consultant
> JBoss Group, LLC
> xxxxxxxxxxxxxxxxx
> 
> 
> 
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to