Previously used Delphi write logic on the client, with Indy wrote a simple HTTP server, handles remote INSERT / UPDATE / DELETE / BEGINTRANS / COMMIT / ROLLBACK SQL statement, but there are three issues: 1. The program will be tampered with, for example Select Name from UserList is changed to the delete from userlist, and the user table is reimbursed. 2. Remote transactions, the transaction is started after the network is interrupted, and the transaction begins to hang up 15 seconds. 3. Modeling problems, MVC will not be written together with logic, but it is basically not modeled, but maintenance must see the source code.
Recently, I have to use Java Delphi to make my own RIA, and I should solve the above two short problems, the sketch is as follows:
http://blog.9cbs.net/images/blog_9cbs_net/zhangrex/29359/o_ria.jpg
The service is used by Java. The server has a virtual interface server and cache server. It is estimated that it is difficult to learn Java.
The programmer is completely separated from the art, that is, the programmer may not know what the client's appearance is. For example, the program may write this:
Create window A (take the order number, take the customer name, take the customer address);
Customer name .οnclick = event xxx;
Pop-up window A;
As for this pop-up window or in the Windows native window or in the FLASH code does not need to know. If you actually see the interface, you can say that it is "no trick" when you actually see the interface. It is still nothing to do with EJB. It doesn't actually have any tricks. It is made by the art to make "virtual move" into actual moves. Of course, there is no kindness, the virtual move will become a real trick, only But I will not see where to see.
As for that, it is aware that the interface is that the interface is virtual, it is possible to build the interface into the model, which is said to solve half, because if you don't want, how to model the interface, I am not sure, And there is no ability to develop a modeling tool.
Delphi controls, the representation of the layers are very suitable, of course, because of the people in this halfway, is more familiar with it. (Questional: The evil master often uses the knife without swords, C this sword is good, it is too much trouble, if you learn a half-hanging, it may be better than people's luggage), if you can develop IE The layer is just fine, but the workload is too big, I can't figure it out, Script / IE / XML / session stir together, make people dizzy, I just want to have a self-maintained RIA, the control has made, full of food.
(Too much look: There is no silver bullet in the future, I can't affirmed that there is an artificial intelligence this atomic bomb is true, at least I am believed - it is a parallel computing world, which has transcended the software, surpassing it. The thinking of people. Coincidentally, he may also destroy humanity, this is really coincidental)