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