diff --git a/build.xml b/build.xml
index dd9bb4fe82..ff4fd91eca 100644
--- a/build.xml
+++ b/build.xml
@@ -419,6 +419,193 @@ under the License.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ------------------------------------
+
+ tenantName = ${tenantName}
+ db-Platform = ${db-Platform}
+ db-IP = ${db-IP}
+ db-User = ${db-User}
+ db-Password = ${db-Password}
+ ------------------------------------
+ database for tenant data will be 'ofbiz_${tenantId}'
+ database for tenant olap data will be 'ofbizolap_${tenantId}
+
+ ------------------------------------
+
+
+
+
+ ------------------------------------
+
+
+
+
+ ------------------------------------
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ------------------------------------
+
+
+
+ ------------------------------------
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/framework/entity/config/entityengine.xml b/framework/entity/config/entityengine.xml
index 7d00cab2d3..e98bcbbedd 100644
--- a/framework/entity/config/entityengine.xml
+++ b/framework/entity/config/entityengine.xml
@@ -53,11 +53,23 @@ access. For a detailed description see the core/docs/entityconfig.html file.
+
+
+
+
@@ -65,6 +77,12 @@ access. For a detailed description see the core/docs/entityconfig.html file.
+
+
@@ -320,6 +338,66 @@ access. For a detailed description see the core/docs/entityconfig.html file.
For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ time-between-eviction-runs-millis="600000"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/framework/resources/templates/AdminNewTenantData-MySQL.xml b/framework/resources/templates/AdminNewTenantData-MySQL.xml
new file mode 100644
index 0000000000..b3e56344c6
--- /dev/null
+++ b/framework/resources/templates/AdminNewTenantData-MySQL.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/framework/resources/templates/AdminNewTenantData-Oracle.xml b/framework/resources/templates/AdminNewTenantData-Oracle.xml
new file mode 100644
index 0000000000..2981ecca2c
--- /dev/null
+++ b/framework/resources/templates/AdminNewTenantData-Oracle.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/framework/resources/templates/AdminNewTenantData-PostgreSQL.xml b/framework/resources/templates/AdminNewTenantData-PostgreSQL.xml
new file mode 100644
index 0000000000..ab6e6d0454
--- /dev/null
+++ b/framework/resources/templates/AdminNewTenantData-PostgreSQL.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
\ No newline at end of file