O'Reilly logo

Apache OFBiz Cookbook by Ruth Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing OFBiz Java Events

Writing an OFBiz Java Event is as simple as writing a Java method and then configuring OFBiz to be able to find the Event on the Java CLASSPATH. When would you want to write a Java Event? Any time you want to process input from a web application, such as the submission of an HTML form entry or as a result of a URL request, an Event may be coded to accept the HTTP/HTTPS request and return a response object to the browser.

When writing your first Event, it is often easier to add your Event's method to an existing Java class file. Any existing class file will work. Remember that the OFBiz convention is to add an "Events.java" suffix to class files containing Events.

Getting ready

To start writing Events, the following have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required