Patent ID: 7165108

Claim:
A method for load balancing in a JAVA based environment, the method comprising: executing a JAVA application having a first service module and a control module, wherein the control module includes application-specific load-balancing policies for the application, the application specific policies are in a JAVA code form, the application-specific policies are provided to an underlying JAVA platform without altering the JAVA platform, and the application-specific policies include a specific server on which to generate a second service module; sensing a utilization of system resources; generating the second service module, using the first service module, the generating of the second service module being based on the application-specific policies of the application and using the specific server, in response to the sensed utilization of system resources, wherein the specific server is selected based on the application-specific polices of the control module; transferring a state of the first service module to the second service module; and terminating the first service module.