Table of Contents

J2EE - Class Redefinition (FastSwap)

About

Java EE 5 introduces the ability to redefine a class at runtime without:

This allows containers to reload altered classes without disturbing running applications, vastly speeding up iterative development cycles and improving the overall development and testing experiences.

The usefulness of the Java EE dynamic class redefinition is severely curtailed, however, by the restriction that the shape of the class – its declared fields and methods – cannot change.

FastSwap

FastSwap remove the redefinition restriction in Weblogic, allowing the dynamic redefinition of classes with new shapes to facilitate iterative development. With FastSwap, Java classes are redefined in-place without reloading the ClassLoader.

You can

To enable FastSwap in your application, add the following element to the weblogic-application.xml file.

<fast-swap>true</fast-swap> 

Documentation / Reference