Java has been not ideal on desktop programs, and Sun wants to use him to make up this. In the past our system shelf called C / S, the client needs to install a lot, now our structure is called B / S, and it is also called ultra-thin client. Although B / S has a lot of advantages, it is still not ideal, such as our operation of local files. Web start launches a new concept called D / S, there are few people in China know what D / S is. Destk Application / Server Application client With Swing, the server side You can use servlets, use Swing and Servlet to exchange data, you can communicate with standard HTTP protocols to exchange data. This combines Java's strengths and weaknesses. The server side doesn't have to say more, everyone knows. The client must install Web Start and packed the Delivery Swing UI to * .jar and signed. Put it in a webapp directory. At the same time, establish a * .jnlp file, if you don't know what JNLP file, you can go to the Sun website, the essence is a file in XML format, declare this JAR package main function, and JAR's URL, etc. The client will activate the client's WebStart boot, there is a download box, download the JAR package, download and run the program. The SWING here can operate the local file as you can run in the IDE, (the applet is not possible); actually he downloads the JAR package to the local operation. Data is swapped through the servlet of the fort.
He is much better than the C / S structure. This architecture will be more in the next few years.