Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Data To Gather for Setup
  2. Technical Setup Process
    1. Tools Installation
    2. OFBiz Installation
    3. Database Setup
    4. Seed Data Loading
    5. OFBiz Configuration
      1. Cache Settings
      2. Debug Settings
      3. Security Settings
      4. URL and Port Settings
      5. Ports, Default Values
      6. SSL Certificate Setup
      7. Currency, Locale Settings
      8. Email Server Settings
      9. Mounting a Root WebApp
    6. Running OFBiz
    7. Running OFBiz Automated Tests
    8. Performance Monitoring and Tuning
  3. POS Setup Process

...

To load the initial data just use the OFBiz install routine through ant or directly with Java and the ofbiz.jar executable JAR file. By default the install routine will load the "seed" and "demo" sets of data files, as defined in the entityengine.xml file and in the ofbiz-component.xml file in each component. Run one of these two options from the command line in the ofbiz home directory to run the default install routine:

Code Block
ant run-install

or

Code Block
java \-jar ofbiz.jar \-install

help can be obtained by by the following commands:

Code Block
java \-jar ofbiz.jar \-help

or

Code Block
java \-jar ofbiz.jar

...

 \-install  \-help

Note that you can choose to only load the basic "seed" data and not load the "demo" set of data files. To do this run something like:

...

For larger installations we recommend creating data files with your own settings, copied from the demo data, or simply creating all data from scratch. These can be added to the "ext" set of install data files, which is done by referencing those files in an ofbiz-component.xml file entity-resource tag with the attribute reader-name="ext". To load the "seed" and "ext" groups run something like:

Code Block
java \-jar ofbiz.jar \-install \-readers=seed,ext

or the special ant target:

Code Block
ant run-install-extseed

The OFBiz demo data includes a Party with ID "admin" and it has a number of UserLogin accounts associated with it that have varying permissions. Note the following configuration changes:

...

There are various ways to run OFBiz, and they all come down to some variation of the executing the "ofbiz.jar" executable JAR file. On the command line this can be as simple as:

Code Block
java \-jar ofbiz.jar

For production use you will want to setup a start script that contains special settings for things like memory heap size, and so on. There are example start and stop scripts in the root ofbiz directory in the startofbiz.sh and stopofbiz.sh files.

...

Code Block
java -jar ofbiz.jar -test -component=entity

Performance Monitoring and Tuning

...

To run OFBiz in the POS "mode" just run:

Code Block
java \-jar ofbiz.jar \-pos

Note that this uses the pos-containers.xml file instead of the ofbiz-containers.xml file and by default it doesn't load a web container (ie Tomcat or Jetty), but that can certainly be added by changing that file.

...