Presentation is loading. Please wait.

Presentation is loading. Please wait.

OFBiz Internals.

Similar presentations


Presentation on theme: "OFBiz Internals."— Presentation transcript:

1 OFBiz Internals

2 Summary of OfBiz (1) It’s a big Java Application It runs on anything
It requires SDK 8 It runs on anything Windows, Linux, Unix and the Mac

3 Summary of OfBiz (2) It uses Apache Ant
A Java library that is used to manage the build of an application A .net solution and project file – sort of It uses Gradle, which builds upon Apache Ant It uses an internal Java database called Derby but most any database will work Postgres is the suggested Apache database MySQL and SqlServer would work too

4 OfBiz Architecture

5 OfBiz Architecture

6 Ant Basics Visit http://ant.apache.org/
It’s one of many tools deigned to build software Configure builds Configure build versions All through declarative XML vocabulary

7 Ant Basics Build.xml controls the build Defines targets <target>
Create folders <mkdir> Copy files <copy> Delete files <delete>

8 Other installers UNIX make and name InstallSheld Deploymaster
There are several

9 OFBiz Physical Layout

10 OfBiZ Physical Layout

11 OfBiz Physical Layout (1)
config: configuration files such as labels and prompts Xml files. .properties files are configuration resources data: seed and / or test data files These map to the data that ends up in entity tables ShipmentTypeData.xml

12 OfBiz Physical Layout (2)
documents: help documents entifitydef: entity definition files used to build the database Entitymodel.xml script: script files written in minilang or groovy Product\script\shipment\ShipmentServices.xml src: Java source files

13 OfBiz Physical Layout (3)
servicedef: entries for Web services In addition to Groovy scripts webapp: The web application itself Uses another tool called freemarker widget: define the screens

14 OfBiz Design It’s based on the OASIS Universal Business Language (UBL)
UBL lays out objects and responsibilities for many things Product items Customers Etc… These map to OFBiz Entities

15 OfBiz Design It’s based on a component stack made up of several components Entities are those tables and relationships you viewed with the entity designer They are built from XML files

16 OfBiz Components (Entity)

17 Entities (Figure)

18 OFBiz Components (Service Engine)
Services are independent pieces of logic Workflow, Rules, Java, SOAP BeanShell are supported by OfBiz Parts A service definition declared in a “component” A service engine associated with the service definition Services can call other services (chaining)

19 OFBiz Components (Service Engine)

20 OFBiz Components (Service Engine)

21 OFBiz Components (Service Engine)

22 Installing Steps Install the correct Java version and SDK
Download and unzip the OfBiz distribution Configure the software

23 Configuring the Application
Setup demo data, if desired There is a clean option to remove all data. Setup the ports

24 Configuring the Application
We had no settings because I had not configured them ${ofbiz install dir}/framework/common/config/general.properties

25 Multitenant In the OfBiz context, multitenant means that we run one copy of the software but several copies of the data (base) Good for development Good for our class Good to create multiple branded websites within one instance of the application Good for the environment too

26 <Tenant tenantId=“10001” tenantName=“Name”/> <TenantDataSource tenantId=“10001” entityGroupName=“org.ofbiz”  jdbcUri=“jdbc:postgresql:// /tenant_name” jdbcUsername=“username” jdbcPassword=“password”/> <TenantDataSource tenantId=“10001” entityGroupName=“org.ofbiz.olap”  jdbcUri=“jdbc:postgresql:// /tenant_nameolap” jdbcUsername=“username” jdbcPassword=password"/>

27 http://events. linuxfoundation

28 //19


Download ppt "OFBiz Internals."

Similar presentations


Ads by Google