The factory code uses the Java ServiceLoader class, so you will need to
create a service properties file for it to load. Look in the META-INF
folder of the entity component.
-Adrian
On 4/1/2011 4:33 AM, Paul Ray wrote:
Hello Ofbiz user community,
I am trying to avoid file base properties files and uilabels and
rather load them from Database. Reason, support configuration without
touching the code and eventually multi-tenant. As part of the attempt,
trying to load a few properties entries from DB in
org.ofbiz.base.util.UtilProperties class. The trouble is delegator is
not available here. As work around initialized for "default" using
DelegatorFactory after adding entity module classes in the build path.
The build goes through , however, at runtime get classnotfound
exception for Delegator Factory. Not sure if this is a classloader
issue since adding the entity/lib directly to the classpath didn't
help either. What am I missing?
Also alternatively is there a better way to query DB (need to be
multi-tenent aware since eventually all property file entries would
need to move there) as part of base module?
Thanks
PR