Apache OFBiz

来自开放百科 - 灰狐
2007年10月14日 (日) 08:23Allen (讨论 | 贡献)的版本

跳转到: 导航, 搜索
Ofbiz-logo.jpg

OFBiz 已经正式成为 Apache 的顶级项目: Apache OFBiz

目录

Install

$ svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
$ ant run-install
$ java -jar ofbiz.jar

This will give a base install running on an embedded Derby database and web services listening on port 8080 and 8443

http://localhost:8080/ecommerce
http://localhost:8080/manufacturing

Technical

Entity Engine

  • OFBiz apps work with relational stores directly
  • Entity Engine provides a “ResultSet on steroids”interface to relational data called a GenericEntity
  • Schemas and queries are database agnostic
  • A caching infrastructure is provided to accelerate common lookups. Cache sizes can be adjusted on an Entity by Entity basis

Service Engine

  • Services are exposed as stateless units of functionality with named parameters and can be called synchronous, asynchronous or scheduled
  • Services can be implemented in a variety of languages; The calling interface shields any calling code from the implementation details
  • Services can be delegated to remote machines via SOAP, XML-RPC and other messaging services; OFBiz services can also be externally exposed via the same protocols

Example Service

<service name="quickShipEntireOrder" engine="simple" auth="true" location="org/ofbiz/shipment/shipment/ShipmentServices.xml"
invoke="quickShipEntireOrder">
<description>Quick Ships An Entire Order Creating One Shipment Per Facility and Ship Group. All approved order items are automatically  issued in full and put into one package. The shipment is created in the INPUT status and then updated to PACKED and SHIPPED.
</description>
<attribute name="orderId" type="String" mode="IN" optional="false"/>
<attribute name="originFacilityId" type="String" mode="IN" optional="true"/>
<attribute name="setPackedOnly" type="String" mode="IN" optional="true"/>
<attribute name="shipmentShipGroupFacilityList" type="List" mode="OUT" optional="false"/>
</service>

Products

Products based on Apache OFBiz

相关链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱