ofbiz is a based on WEB application Development Framework, which provides an extensive infrastructure for developers to quickly develop efficient, structured applications. For developers, just focus on the development of the business logic layer and the development of the UI , and the others are encapsulated into components that do not require development to expend effort on these things. From this point of view, the price will be relatively high bar.
I've done a small example, I know .ofbizis aWebThe application Development framework is made up ofWEBThe server accepts the request and processes the request toWEBThe form of the page will show the results to the user, the user through the browser, throughHTTPprotocol for application access. Becauseofbizis an application framework that encapsulates many components based on this framework and leverages these new technologies to achieve what we only need to developWebthe effect of the application. But these new technologies are notTomcatcan be recognized and understood. In order to letTomcatUnderstanding and understanding, usingFilterand theServletto complete the translation work. In this way, we can block the server differences, to better work.
so ofbiz How does a component interact?
First of all, we have a component-managed file for each module that manages the entity engine, the server engine , web url view or screen service to deal with. In fact, it is such a process controller.xml-->screen.xml--> Form.xml-->service.xml (commonservice.xml)-->entity.xml
1 " client browser to web server makes a request that is web container receives and handles accordingly.
2 " request sent to a proxy servlet servlet the request is destined for. app controller.xml config file to match request -map, According to its configuration, specific to how to deal with, such as security authentication, permissions, the type of return, corresponding to which
3 ) URL Request Web page to View Handler.handler according to Screen the definition determines which page to render. Then combine the page with the data.
4 ) Any configured data preparation scripts run and the results are placed in the View in the context.
5 ) ofbiz of the Viewhandler after binding the page elements and data, render the final data flow through the template, Http/https response back to browser
The shortcomings
first admit it, ofbiz The framework of the package is still very good, The idea of using component hot-swappable is very flexible. For developers, write only web
Although there are so many good things to say back to a small function to write N multiple XML, sometimes some problems to find to find a while, Then I wonder if we want to encapsulate a visual interface and drag and drop it to complete the function. From now on I Understand ofbiz, I think this is the only one deficiency.
Summarize
Abstraction, encapsulation is fundamental. All of these frameworks and solutions to problems are based on an abstraction of these issues, encapsulated in a set of conclusions.
Apache OFBiz Get started quickly-component interaction