Journal of Mobile, Embedded and Distributed Systems, vol. I, no. 1, 2009
not bound to the system where it begins execution, canmove from one system to another within network and transports both its stateand its code with it.In the figure 3 it is present the difference between client-server, remote execution,mobile code and mobile agent approach. The mobile code exposes that the code is
obtained from a remote, possibly “un
ed” system, which is executed on your local
web applets, executable email attachments, proxies downloaded as part of adistributed object technology, such as Java RMI or Jini. In a general sense, mobileagents are also mobile code, since, from the view of the system receiving the mobileagent, code is being downloaded to it. The following analogy is applied in Javatechnology in figure 12.3: the Workshop is JVM in that is executed Java byte-code for
building response, the phrases of type “Tell me how to build a car” is a HTTP request,
CarPlan is byte-code and the image with the car is the result that is also a HTTPresponse or a Java object; mobile code approach corresponding to Java applets.
Client CodeHost A
Build me a carHost B
Build me a car. TakeHost B
Tell me how tobuild a carHost B
WorkshopCar PlansHost A
Client ComputerLet me use yourworkshop tobuild a carHost B
Fig. 3. Different approach for building distributed systemsStrong and weak mobility used in agent theory is translate that
the strong mobility
means migration of agent code, data and execution state and
the weak mobility
means migration of only the agent code and data.
It is obvious that strong mobility isdifficult to accomplish
if the agent code is interpreted, access to theexecution state is difficult to obtain and
if the agent code is compiled beforeexecution, the execution state is represented by the stack of program. Transporting thestack and rebuilding it on a different host, which can be an entirely differentarchitecture, is a not easy task.
2. Mobile and intelligent agents features
In order to use a dedicated terms in mobile agent technology it is shown the most usedterms and their meanings :