OFBiz separating the default database

Source: Internet
Author: User

1 Web

<context-param>    <param-name>entityDelegatorName</param-name>    <param-value> Default</param-value>    <description>the Name of the Entity delegator to use, defined in entityengine.xml& Lt;/description></context-param>

Change your definition of delegator in default?? Oeasy

2 Entityengine.xml custom delegator?? Oeasy

<delegator name= "Oeasy" 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= "ofbiz_ MySQL "/>    <group-map group-name=" Org.ofbiz.olap "datasource-name=" Ofbiz_mysql "/>    <group-map Group-name= "Org.ofbiz.tenant" datasource-name= "Ofbiz_mysql"/></delegator>

3 Definition Number According to the original Ofbiz_mysql

<datasource name= "Ofbiz_mysql" helper-class= "Org.ofbiz.entity.datasource.GenericHelperDAO" Field-type-nam E= "MySQL" check-on-start= "true" add-missing-on-start= "true" check-pks-on-start= "false" use-for Eign-keys= "true" join-style= "Ansi-no-parenthesis" alias-view-columns= "false" drop-fk-use-foreign-key- Keyword= "true" table-type= "InnoDB" character-set= "UTF8" collate= "utf8_general_ci" > <read-dat A reader-name= "tenant"/> <read-data reader-name= "seed"/> <read-data reader-name= "seed-initial"/> &     Lt;read-data reader-name= "Demo"/> <read-data reader-name= "ext"/> <read-data reader-name= "Ext-test"/>            <read-data reader-name= "Ext-demo"/> <inline-jdbc jdbc-driver= "Com.mysql.jdbc.Driver"             Jdbc-uri= "Jdbc:mysql://localhost/aa?autoreconnect=true" jdbc-username= "root" jdbc-password= "123456" Isolation-levEl= "ReadCommitted" pool-minsize= "2" pool-maxsize= "time-between-eviction-runs-millis="            "600000"/><!--Please note that at least one person have experienced a problem with the this value with MySQL            and had to set it to-1 in order to avoid this issue. For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html-- > <!--<jndi-jdbc jndi-server-name= "Localjndi" jndi-name= "Java:/mysqldatasource" isolation-level= " Serializable "/>--></datasource>

OFBiz separate the default database

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.