ofbiz framework and core principles introduced

1. What is Ofbiz

OFBiz ( Open for Business ) is an open source, based on J2EE and XML specification for building large-scale enterprise-class, cross-platform, cross- database , multi-layer cross-application server, distributed e-commerce WEB framework application system ( Framework ).

Ofbiz almost achieved all the J2EE core design pattern, the coupling between the various modules is relatively loose, the user can relatively easily be disassembled according to their needs.

Ofbiz built a number of other open source projects such as JBoss , PostgreSQL , MySQL , the Apache , Jetty , JOTM , JPublish , BeanShell , Ant , BSF , Log4J , etc., to provide a relatively low cost solution. Also, users can be compared easily replaced by other components, as will Jboss && Tomcat replaced Bea Weblogic or the IBM  the Websphere .

2. Ofbiz benefits

l shorten the development cycle, reduce costs

Allegedly, many based on J2EE failure practice, can be attributed to poor design. J2EE specification is not complicated, but how to follow the J2EE standard, according to their business needs, do a proper, efficient, scalable design, is the need for practical experience and wisdom. The medium-sized foreign-based system J2EE has long been a lot of domestic recent years have sprung up, but not a lot of excellent designers.

Ofbiz value lies in its architecture is very good, not only to use almost all of the J2EE core design patterns ( Sun 's recommended), but also to achieve workflow, business rules engine to process flexible and change. Thus, to avoid the lack of poor design caused by outstanding design.

Based Ofbiz development, will undoubtedly shorten the development cycle, good design and the introduction of workflow and business rules engine, but also the greatest degree of reducing the maintenance cost of the system.

l with little  Code  complete complex process

This is Ofbiz  one of the advantages claimed. If Ofbiz digest, based on Ofbiz develop a CRM and ERP systems will greatly shorten the development cycle, due Ofbiz good design, maintenance costs should be relatively small.

Ofbiz  has completed most of its business class software system components are required, such as user authentication, workflow, business rules processing, many business needs by simply writing XML configuration files, and very little Java code to complete. Small amount of code, but know how to write would be more time-consuming. Understand Ofbiz later, write code that implements usually relatively simple, only we need to follow its development machine system it wants.

l good scalability and portability

OFBIZ framework provided, it is a pure Java application. Interface Framework provides a very complete, such as the core components of an entity engine, the earlier version had been very mature. Entity engine, users do not directly manipulate the database, build database tables, queries, views, triggers, and so can be done by writing an XML configuration file. It was also suggested that entity engine can not handle complex SQL queries, in fact, on the one hand this complex SQL queries rarely encountered, on the other hand entity engine also allows you to use SQL code to manipulate such complex queries.

OFBIZ developers while preserving and Weblogic, Tomcat, Jboss, Resin, Orion and other 16 manufacturers and compatible version of the Web App application server.

OFBIZ developers and at the same time maintaining the Oracle , MySql, Sybase, PostgreSQL, and other database products compatible hsql support, including compilation, packaging and deployment to these database products or operating environment application server products.

OFBIZ developers simultaneously in the two major Unix and Windows operating systems for development and on the test , and have all the characteristics of cross-platform Java applications.

With these, specific for large enterprise applications, the particular implementation, you are confident to achieve so-called "development once, run anywhere."

l no copyright issues

Free and can be used for commercial purposes, you can distribute.

3. Ofbiz the MVC pattern implementation

Ofbiz greatest value, perhaps it is not just a technical framework, it is a very good business enterprise application framework. It MVC pattern is not Web layer, but throughout the business layer and the data layer, each layer has an excellent control.

 The controller data layer (Entity Engine)

实体引擎是Ofbiz最有价值、最核心的、也是最稳定的一个数据层控制器,通过它基本不用编码或很少编码就可以访问数据层。Ofbiz提供了用XML些配置文件的方法来操纵数据。

实体引擎的功能类似于CICS、实体EJB、以及其他O-R Mapper。但是,Ofbiz的实体引擎不仅强大、而且灵活,程序员不需要JDBC知识,不用写SQL代码。基本上,实体引擎的封装能够解决绝大部分的数据库操作,同时,也提供了给你写SQL代码,实现复杂SQL查询的空间。

实体引擎采用了不少核心J2EE设计模式,如值对象、代表、助手等模式,用户的API接口比较友好。

 逻辑层的控制器 (Service Engine)

服务引擎是Ofbiz的另一个核心组件。Ofbiz只有这两个核心组件。实体引擎代表业务数据,而服务引擎代表了业务逻辑。

Another worth introducing service engine is that it makes Ofbiz operational framework is not limited to Web applications. Non- Web clients include java  application, the EJB , even SOAP can be called directly, so scalability is very good framework.

Service engine service can be divided into synchronous, asynchronous (care or ignore the results), support for JMS . Specific implementation can be a java  static method, workflow, Bean Shell scripts. As shown below:




 Web Layer Controller  (Control Servlet, JPublish, etc)

Web core layer controller is Control Servlet . And Struts , like, Web flow controller configuration file layer is a XML file.



Original Address: https://blog.csdn.net/levelo/article/details/54693900

Guess you like

Origin www.cnblogs.com/jpfss/p/11571918.html