A "remote" database is any data source that is not the default Derby database. A remote database may be network connected and/or installed on the local server. The Entity Engine supports simultaneous connections to an unlimited number of remote databases in addition to, or as a replacement for, the default instance of Derby.
Each remote database connection requires a datasource
element entry in the entityengine.xml
file. Adding and removing database connections may be performed at any time; however, entityengine.xml
file changes are only effective upon OFBiz restart.
Collect all the necessary information required to connect to the remote database. In particular, you will need, at a minimum, the following information:
entityengine.xml
file for examples.Once the initial information (as stated earlier) is collected, a remote database can be connected to by following these steps:
entityengine.xml
file. Add one or more datasource
elements, one for each target database. Add one or more delegator
elements with entity group configuration information telling the Entity Engine which entities are to be found on which target databases. ofbiz-component.xml
file.Entity engine database connections and entity models are built whenever OFBiz is restarted as part of its initialization process. To manage database connections, connection pooling across all defined databases, data transfer, and data source transaction specifics, OFBiz consults the entityengine.xml
file and automatically builds the internal control settings each time it is restarted.
18.221.165.115