There is no VM or GlassFish setting that will make the VM do what you want automatically.
You can certainly try loading your dynamic class using a different class loader for each reload of the class. This could have its own issues but it would allow you to load different versions into the VM, each by a separate loader.
There is also some separate work going on in this area of dynamic class reloading but it's not ready for use yet.
- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]
http://forums.java.net/jive/thread.jspa?messageID=300373