An invention is disclosed for a load balancing method in a JAVA based
environment. The method includes executing an application having a first
service module and a control module. The control module includes
application-specific policies for the application. During execution, the
utilization of system resources is sensed. In response to the sensed
utilization of system resources, a second service module is generated
using the first service module. In addition, the state of the first
service module is transferred to the second service module, and the first
service module is terminated. To sense the system resource utilization,
embodiments of the present invention can poll system resources, or
receive notifications from the system resources. Further, some
embodiments of the present invention include application-specific
policies that include specific servers on which to generate the second
service module during load balancing or module moving.