This wee tutorial explains how to run OFBiz as a Windows Service. It is based on exactly our experience - many other variations probably work but we have never tried them. The same approach could probably be used to run it as a Linux System V service, but I have not tried this (we use a different technique for this).
Prerequisites
- Comfortable with installing and running OFBiz weekly build at the Windows Command Line
- JDK 1.5
- MySQL 5.0 installed as a Windows Service (we recomend at least 5.0.24 as below this there are some nasty instabilities in MySQL)
- Read this tutorial http://wrapper.tanukisoftware.org/doc/english/integrate.html
Preparation
- Download the latest stable binary of Java Service Wrapper from here: http://sourceforge.net/project/showfiles.php?group_id=39428&package_id=31591
- Extract it to a temporary dir, for instance JSW
- Create a new subdir OFBIZ_HOME/win32 , and copy into it: JSW/lib/wrapper.dll, wrapper.jar
- Copy the file JSW/bin/wrapper.exe to OFBIZ_HOME
- Download the files attached to this Wiki Post, to OFBIZ_HOME/win32 : InstallOFBiz.bat, UninstallOFBiz.bat, service.conf
- Adjust the values in service.conf for wrapper.java.initmemory and wrapper.java.maxmemory according to your environment