An invention for migrating managed application state for a Java based application
is disclosed. A first Java module is executed on a first server. The first Java
module includes a first entity bean and a first state object in communication with
the first entity bean. The first state object stores a state of the first entity
bean. The first state object is replicated to a state server or stored in-memory
and made capable of migration by replicated state manager. Then, a second Java
module is started on a second server as part of the module migration by a control
module. The second Java module includes a second state object that is populated
with state by either recovering from replica of fist state object stored on the
state server or by getting transferred state of an in-memory copy of first state
object managed on first server.