All Tamino processors have a common config
input, describing the
database connection and collection.
The configuration of the Tamino processors can be done in two ways: either
system-wide via the OPS
Properties, or locally for a specific instance of the processor through
the config
input. The local configuration takes precedence if
available.
2.1.1.
config Input
The config
input document specifies the URL of the Tamino
server, the credentials to use when connecting and the collection to
access. The following table describes the configuration elements.
Name |
Description |
url
|
Tamino database URL. |
username
|
Username to authenticate with the server |
password
|
Password to authenticate with the server |
collection
|
XML Collection to use |
This RelaxNG schema describes the expected
document.
<element name="config" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <interleave> <optional> <element name="url"> <data type="anyURI"/> </element> </optional> <optional> <element name="username"> <data type="string"/> </element> </optional> <optional> <element name="password"> <data type="string"/> </element> </optional> <element name="collection"> <data type="string"/> </element> </interleave> </element>
2.1.2. System-Wide Configuration
The Tamino processors can be configured in the OPS properties file, allowing all
instances to share the same configuration. The following processor
properties are allowed:
Name |
Type |
Description |
url
|
anyURI
|
Tamino Server URL. |
username
|
string
|
Username to authenticate with the server. |
password
|
string
|
Password to authenticate with the server. |
These properties are set as follows:
<property as="xs:anyURI" processor-name="oxf:tamino-query" name="url" value="http://localhost/tamino/welcome_4_1_4"/> <property as="xs:string" processor-name="oxf:tamino-query" name="username" value="..."/> <property as="xs:string" processor-name="oxf:tamino-query" name="password" value="..."/>
The following global properties are allowed:
Name |
Type |
Description |
oxf.tamino.isolation-degree |
string |
Isolation degree. Possible values are:
uncommittedDocument , committedCommand ,
stableCursor , stableDocument ,
serializable . See the Tamino documentation for more
details on the isolation degree.
|
oxf.tamino.lock-mode |
string |
Lock mode. Possible values are unprotected ,
shared , protected . See the Tamino
documentation for more details on the lock mode.
|
These properties as set as follows:
<property as="xs:string" name="oxf.tamino.isolation-degree" value="..."/> <property as="xs:string" name="oxf.tamino.lock-mode" value="..."/>