Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: When And When Not Recompiling

...

Eclipse

...

What is considered the best practice in creating a custom web application with OFBIZ?

A David Jones's tip

One approach is to simply copy an entire component into a new directory and start hacking away at it until it fit your needs. This is a fine practice if you never have plans of bringing it up to date with a current revision or version. OFBIZ is currently making about 40 commits a week. By the time you complete your customizations, you are out of date.

...

Therefore it is important to make sure that if you're using entities from other component, make sure they are loaded BEFORE your component.

A tip from FooShyn

Anchor
WhenAndWhenNotRecompiling
WhenAndWhenNotRecompiling

When and when not recompiling

This is a big, and often not enough known OFBiz greart fearture. Most of the time you don't need to restart when you change things in dev mode (dev mode depends on the content of cache.properties file, see here how to set it).

It's easier to name the main cases (I'll not get into details) where you need to restart:

  • Containersn and alike configuration (this one seems obvious, changes related to the embedded application server - Tomcat - needs a restart)
  • Java change (compilation)
  • Service definition change (if your service is written in minilang you don't need to retart when changing the implementation)
  • DB definition change (entity, field, etc.)

If the caches are on (ie not on dev mode), it's the same (you don't need to recompile) but you need to clear the caches. See at ...webtools/control/FindUtilCache You might even clear only the cache where things changed (production performance).