OFBiz Study Notes

Source: Internet
Author: User

Latest stable version apache-ofbiz-13.07.02

Latest Source Code ofbiz-release14.12

Change the default database derby to MySQL

STEP1, build Database OFBiz, Ofbizolap, ofbiztenant in MySQL, create database user name, the password is ofbiz,ofbiz respectively.

STEP2, copy the MySQL driver package to OFBIZ_HOME\FRAMEWORK\ENTITY\LIB\JDBC.

STEP3, modify the Entityengine.xml under the Ofbiz_home\framework\entity\config,

First, find the following code in the file:

<delegator name= "Default" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localderby"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localderbyolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localderbytenant"/>
</delegator>
<delegator name= "Default-no-eca" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Entity-eca-enabled= "false" distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localderby"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localderbyolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localderbytenant"/>
</delegator>

Put the above codeRepairSwitch
<delegator name= "Default" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localmysql"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localmysqlolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localmysqltenant"/>
</delegator>
<delegator name= "Default-no-eca" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Entity-eca-enabled= "false" distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localmysql"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localmysqlolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localmysqltenant"/>

STEP4 the DOS command line, execute the command under the Ofbiz_home directory:

Ant Load-demo

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

OFBiz Learning Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.