1. OFBiz简介
2. OFBiz下载
3. OFBiz运行环境
4.OFBiz目录介绍
4.1 applications
4.2 framework
4.3 specialpurpose
4.4 hot-deploy
4.5 runtime
1.OFBiz简介
Ofbiz是一个非常著名的开放的电子商务平台,提供了创建基于J2EE/XML规范和技术标准,构建大中型企业级,跨平台,跨数据库,跨应用服务器的多层,分布式电子商务类WEB应用系统的框架。Ofbiz最主要的特点是Ofbiz提供了一整套的开发基于java的web应用程序的组件和工具。包括实体引擎,服务引擎,消息引擎,工作流引擎,规则引擎等。
2.OFBiz下载
Apache Ofbiz的下载,可以到官网去下载,到目前为止,最新的就是Apache OFBiz 13.07.03
官方网站:
http://ofbiz.apache.org/index.html
下载地址:
http://www.apache.org/dyn/closer.cgi/ofbiz/apache-ofbiz-12.04.05.zip
http://www.apache.org/dyn/closer.lua/ofbiz/apache-ofbiz-13.07.03.zip
3.OFBiz运行环境
Apache Ofbiz使用的JDK是1.6的,部署Apache Ofbiz 的环境最好是JDK1.6或者是JDK1.6.0以上的.可以使用myeclipse/eclipse的ant来部署.
4.OFBiz目录介绍
Apache Ofbiz下载下来是压缩包,13.07.03解压出来的目录如下:
其他版本的目录结构可能有所调整,因为ofbiz采用了组件的架构,所以每一个应用程序在一个组件内.允许外部的和定制化的应用程序能够很容易的被包含起来.
4.1 applications
applications所包含的目录如下:
applications包含了Ofbiz核心的应用程序组件,如订单管理,电子商务存储等.其中component-load.xml文件配置了需要载入的应用程序组件,在这里的每一个组件,都是一个基于ofbiz够构建的web应用程序.默认的情况下,加载的组件主要是以下的内容:
<component-loader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd">
<load-component component-location="party"/>
<load-component component-location="securityext"/>
<load-component component-location="content"/>
<load-component component-location="workeffort"/>
<load-component component-location="product"/>
<load-component component-location="manufacturing"/>
<load-component component-location="accounting"/>
<load-component component-location="humanres"/>
<load-component component-location="order"/>
<load-component component-location="marketing"/>
<!-- common component used by most other components last because it uses info from most components-->
<load-component component-location="commonext"/>
</component-loader>
4.2 framework
framework所包含的目录如下:
Framework框架目录,包含Ofbiz框架的组件,例如实体引擎和服务引擎.component-load.xml默认载入的组件如下:
<component-loader xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/component-loader.xsd">
<load-component component-location="base"/>
<load-component component-location="geronimo"/>
<load-component component-location="sql"/>
<load-component component-location="entity"/>
<load-component component-location="security"/>
<load-component component-location="datafile"/>
<load-component component-location="minilang"/>
<load-component component-location="common"/>
<load-component component-location="service"/>
<load-component component-location="catalina"/>
<load-component component-location="entityext"/>
<load-component component-location="bi"/>
<load-component component-location="webapp"/>
<load-component component-location="widget"/>
<load-component component-location="testtools"/>
<load-component component-location="webtools"/>
<load-component component-location="images"/>
</component-loader>
4.3 specialpurpose
Specialpurpose(apache-ofbiz-13.07.03)所包含的目录如下:
Specialpurpose(apache-ofbiz-12.04.05)所包含的目录如下:
从目录可以看出workflow主要是放在这个包中的.specialpurpose包含一些其他的应用程序,如workflow,shark..,不是ofbiz的核心部分.
4.4 hot-deploy
Hot-deploy热部署目录,它的组件能够被删除和自动载入.这里没有component-load.xml文件.目录中所有的组件,都会在framework和application目录下的组件被导入之后导入.
4.5 runtime
runtime所包含的目录如下:
data目录包含种子和演示数据,xml格式。
以上是对Apache Ofbiz的进行一个大概的介绍,先大概的了解一下关于每个包的作用,对以后的开发有很大的作用.学习还需要从宏观进行把控.