In this chapter, we will cover
CLASSPATH basics
Java file naming conventions
Creating OFBiz Java Events
Creating OFBiz Java Services
Debugging
Calling an OFBiz Service from a Java program
Java programs and request parameters
Error messages: best practices
Using properties files
Sending e-mail
Manipulating XML files
Note
Note: This chapter is not intended to instruct Java developers planning to commit code back to the OFBiz project. Such code is subject to the OFBiz Contributors Best Practices document found at:
Before you can write effective OFBiz Java code, you need to understand some basics about the environment in which OFBiz operates. In the previous chapter, we learned that OFBiz executes within a JVM. That JVM, in turn, hosts a Java servlet container. The servlet container provides all the basic programming infrastructure necessary to build and run OFBiz web applications (sometimes referred to as "webapps").