Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Improved the "How to connect to an External Database" tip

...

  1. Create entity definitions for the external database like you would for an OFBiz entity (except use the no-auto-stamp="true" attribute).
  2. Assign the entities to a different group (in entitygroup.xml), "advertpromyExternalDB" for example.
  3. Create a datasource for the external database (in entityengine.xml), named "myExternalDB" for example.
  4. Assign the "mysql-advertpromyExternalDB" datasource and the "myExternalDB" entity group to the the default delegator: <group-map group-name="myExternalDB" datasource-name="myExternalDB"/>
  5. Use the default delegator to access the external database.

...