...
The resource-loader
tag is used to configure a named resource loader that can be used elsewhere to load XML and other resources. It has the following attributes.
Attribute Name | Required? | Description |
---|---|---|
name | Y | The name of the resource loader. Used in other tags in the "loader" attribute. |
class | Y | The class to use that extends the abstract class org.ofbiz.entity.config.ResourceLoader. Available classes include FileLoader, UrlLoader, and ClasspathLoader, all in the same package as the ResourceLoader class. |
prepend-env | N | The name of a Java environment property to put at the very beginning of the full location, before the prefix. This is optional. |
prefix | N | A string to put before the location when making the full location. This is optional. If used will go after the prepended environment property and before the location specified for each resource. |
...
The GenericDelagator is created through a factory method that takes a String argument containing the delegator name. This delegator name is used to look up a delegator
tag in the entityengine.xml file.
Attribute Name | Required? | Description |
---|---|---|
name | Y | The name of the Delegator. Used to look up this tag by delegator name. |
entity-model-reader | Y | The name of the entity-model-reader to use for this delegator. |
entity-group-reader | Y | The name of the entity-group-reader to use for this delegator. |
entity-eca-reader | N | The name of the entity-eca-reader to use for this delegator. If not specified no Entity ECAs will be used. |
distributed-cache-clear-enabled | N | Used to specify if the distributed cache clear should be enabled. If not specified defaults to "false". If set to true the other DCC attributes will be used. |
distributed-cache-clear-class-name | N | Used to specify if the name of the class to use for DCC and that implements the distributed cache clear interface. If not specified defaults to "org.ofbiz.entityext.cache.EntityCacheServices", which is a good default for most cases that uses the Service Engine for configuration and remote calls. |
distributed-cache-clear-user-login-id | N | Used to specify if the userLoginId (to use for any security checks) is needed related to distributed cache clear operation. If not specified defaults to "admin". |
...
Each resource
tag has two required attributes: loader
which specifies which resource-loader to use and location
which specifies the location that the resource-loader will use inside itself to load the resource.dss
Field Type XML Files
...
The field-type
tag is used to configure each named field type. The tag has a name
attribute used to specify the field type's name. The group reader uses a single XML file to get the field type information.
...
Attribute Name | Required? | Description |
---|---|---|
jndi-server-name | Y | The name of the JNDI Server to use as configured in this file with the jndi-server tag, described above. |
jndi-name | Y | The name of the Connection or XAConnection object in JNDI. |
The data source retrieved from JNDI should be pooled and transactional, with connections already enlisted if a JTA transaction has been started. It can be either a DataSource or an XADataSource object.
...