First, several stages of software application development
Software application development has gone through, for example, the following stages:
Mainframe systems for multiple end-users
Orphaned software on an isolated personal computer
Client/server Mode
Distributed processing Mode
Content Service Model (the embodiment of network mobility)
The distributed processing mode synthesizes the advantages of network and processor development and distributes the process across multiple processors. And agree that these processes share data. Although such a model has many large computer systems can not be compared to the advantages, but it also has an undeniable disadvantage: difficult to manage.
Software updates, installation, maintenance is very difficult.
The Content service mode (the embodiment of network mobility) is based on the popular distributed processing mode, and it can transmit the software to each computer through the network on its own initiative. This overcomes the problem of system management in distributed processing system.
Ii. Java architecture support for network mobility
Java Architecture support for network mobility The main body is now such as the following:
(1) platform Independence and security : The Java architecture is inextricably linked to network mobility support and its support for platform independence and security.
Although platform independence and security are not necessary for network mobility. But the two are very helpful for the realization of network mobility. Platform agnostic makes it easier to transfer programs on the network without having to prepare different version numbers for different platforms. Enables users to confidently download class files from a variety of sources.
(2) Dynamic connection : The main problem of network mobility is time. Java is supported for dynamic connections.
The Java architecture divides a traditional single binary executable into a small binary fragment-java class file-to solve the time problem, and the class is dynamically connected when the program needs it. Users do not have to wait until all the class files are downloaded.
(3) dynamic expansion : In addition to dynamic connection. The Java architecture also agrees with dynamic scaling. Dynamic expansion is the second way to load a class file. Can be deferred until Java application execution is loaded.
(4) Compact class file : In addition to dynamic connection and dynamic expansion. The Java architecture's direct support for network mobility is also reflected in the class file format. To reduce the time that the program is routed over the network. The class is designed to be very compact. The Java compiler does not do much local optimizations. Leave the optimization work to the Java virtual machine.
(5)jar file : Agree to transfer multiple files during one network transfer, reducing the time of network protocol handshake.
(6) do not use on-demand download : Another strategy to reduce the user wait time is not taken to download the class file on demand, there are several different technologies, such as the subscription model adopted.
Third, Java Network Mobility Example
(1)Java applet (Demo sample of network Mobile code): It shows all Java network-based features: platform independence, network mobility, security. Java applets can be executed on any platform, with only Java-enabled browsers. Java applets also demonstrate the ability of Java to be secure. Because they are executed in a strictly restricted sandbox. Most importantly, the Java applet shows its network mobility.
Java applets can be maintained on a central server. Can be transmitted over a network to a very large variety of computers. To upgrade an applet. You just need to upgrade the server.
The next time the user uses it, they will be able to get the version number after the upgrade. Therefore, the maintenance is local and the execution is distributed.
(2)Jini service Object (Demo sample of network Moving object): In addition to the network mobility of the code. Another promise of Java architecture: The network mobility of objects. Objects travel through the network, carrying their own classes. Plus snapshot data that represents the state of the object. The network mobility of objects simplifies the work of software developers to design and deploy distributed systems.
Through object serialization and remote method invocation (RMI), the Java API provides a distributed object model that expands on the local object model, breaking the boundaries between Java virtual machines.
Deep Java Virtual Machine (4)--Network mobility