Here the configuration files that OGSA-DAI uses as required by the environments under which OGSA-DAI runs (e.g. servlet containers) are described.
On an OGSA-DAI GT deployment - whether under Tomcat or within the GT standalone container - the GT-specific configuration files that OGSA-DAI needs to provide are located within the GT.
In an OGSA-DAI GT deployment Tomcat these files are located relative to the root directory of Globus Toolkit as deployed under Tomcat. By default this will be within the directory:
/PATH/TO/TOMCAT/webapps/wsrf/
Within this directory there are the following files and directories
dai-manager.jsp - OGSA-DAI
JSP page for browsing the OGSA-DAI server state.
share/schema - directory containing
Globus Toolkit, WSRF and OGSA-DAI XML Schema and WSDL documents.
WEB-INF/classes/log4j.properties -
the Globus Toolkit Log4J properties file.
WEB-INF/etc/dai - OGSA-DAI file-based
persistence configuration files (as described in Section 17.2, “OGSA-DAI configuration files”. This assumes the administrator used
the default GAR name of dai.
WEB-INF/etc/dai/jndi-config.xml. This
file specifies the OGSA-DAI server configuration including the
OGSA-DAI version and classes to be used to handle persistence and
configuration and the management of state within an OGSA-DAI server
(see Chapter 18, Advanced server configuration). This also specifies
resource implementation classes and their association to OGSA-DAI
services.
WEB-INF/etc/dai/server-config.wsdd -
Axis deployment descriptor declaring the available OGSA-DAI services
and type mappings to support interaction with these by clients.
WEB-INF/lib - Globus Toolkit,
OGSA-DAI and other JARs required to run Globus Toolkit and OGSA-DAI.
In an OGSA-DAI GT deployment onto the Globus Toolkit standalone container these files are located relative to the root directory of Globus Toolkit.
etc/dai - OGSA-DAI file-based
persistence configuration files (as described in Section 17.2, “OGSA-DAI configuration files”.
etc/dai/jndi-config.xml. This
file specifies the OGSA-DAI server configuration including the
OGSA-DAI version and classes to be used to handle persistence and
configuration and the management of state within an OGSA-DAI server
(see Chapter 18, Advanced server configuration). This also specifies
resource implementation classes and their association to OGSA-DAI
services.
etc/dai/server-config.wsdd -
Axis deployment descriptor declaring the available OGSA-DAI services
and type mappings to support interaction with these by clients.
lib - Globus Toolkit,
OGSA-DAI and other JARs required to run Globus Toolkit and OGSA-DAI.
log4j.properties -
the Globus Toolkit Log4J properties file.
share/schema - directory containing
Globus Toolkit, WSRF and OGSA-DAI XML Schema and WSDL documents.
![]() | Note |
|---|---|
| Note that the use of configuration files is not mandatory. Configuration is an OGSA-DAI extensibility point and third-party developers may implement their own means by which an OGSA-DAI server is configured. Please see Chapter 18, Advanced server configuration. |
On an OGSA-DAI server, OGSA-DAI configuration files are located in a configuration files directory.
If using OGSA-DAI GT on Tomcat configuration files are located in:
/PATH/TO/TOMCAT/webapps/wsrf/WEB-INF/etc/dai/
assuming that the default webapp of
wsrf and GAR name of
dai were used.
If using OGSA-DAI GT on Globus Toolkit configuration files are located in:
/PATH/TO/GT/etc/dai/
assuming that the default GAR name of
dai was used.
The structure of the configuration files directory is as follows:
activities.txt config.txt logins.txt resources/ DataRequestExecutionResource JDBCDataResource XMLDBDataResource FileDataResource SomeDataResource ... resourceTemplates/ uk.org.ogsadai.DATA_SINK_TEMPLATE uk.org.ogsadai.DATA_SOURCE_TEMPLATE uk.org.ogsadai.REQUEST_TEMPLATE uk.org.ogsadai.RESOURCE_GROUP_TEMPLATE uk.org.ogsadai.SESSION_TEMPLATE ...
All activities available to all the resources on an OGSA-DAI server are specified in an activity specification file.
The activity specification file has name
activities.txt and is
located in the OGSA-DAI configuration files directory
Section 17.2.1, “Configuration files directory”.
The activity specification file declares, for each activity, the following information:
id=SomeActivity id=some.company.SomeOtherActivity
class=uk.org.ogsadai.SomeActivityClassName
description=This activity does something.
CONFIG and
END delimiters.
SomeKey or
some.other.SomeOtherKey.
CONFIG some.upper.bound=10 some.timeout=100 some.control.parameter=BIN123 some.flag=false END
To summarise therefore, each entry is of the form:
id=ACTIVITY-ID class=ACTIVITY-CLASS description=ACTIVITY-DESCRIPTION CONFIG [KEY=VALUE]* END
and the activity specification file consists of 0 or more such entries.
OGSA-DAI supports the specification of mappings from the caller's identity and attributes (as contained in the security context) to database usernames and passwords via a logins file.
![]() | Note |
|---|---|
| Note that use of a logins file is not mandatory. How the security context is mapped to database logins is application-specific. We just provide the file-based login provider as one example of how this can be done. Information on writing a login provider is in Chapter 32, How to write a login provider. |
The logins file has name the
logins.txt and is
located in the OGSA-DAI configuration files directory
Section 17.2.1, “Configuration files directory”.
The logins file declares zero or more mappings from distinguished names to database usernames and passwords for zero or more OGSA-DAI data resources.
id=SomeDataResource id=some.company.SomeOtherDataResource
LOGIN-END delimiter.
* character which is assumed to match
to any credential. For example, the following are all examples.
userID=/C=USA/O=Music/OU=Bands/L=Bangles/CN=Susanna Hoffs userID=/C=UK/O=Music/OU=Bands/L=Madness/CN=Suggs userID=*
username= username=susanna
password= password=EternalFlame
END delimiter to terminate the
entry for the resource.
To summarise therefore, each resource can have an entry of form:
id=RESOURCE-ID [ userID=STRING or * username=USER password=PASSWORD LOGIN-END ]* END
and the logins file contains zero or more such entries.
An example logins file is as follows, which declares two mappings for
BanglesDataResource, two for
MadnessDataResource and none for
SpecialsDataResource
id=uk.org.ogsadai.BanglesDataResource userID=/C=USA/O=Music/OU=Bands/L=Bangles/CN=Susanna Hoffs username=susanna password=EternalFlame LOGIN-END userID=/C=USA/O=Music/OU=Bands/L=Bangles/CN=Debbie Petersen username=debbie password=ManicMonday LOGIN-END END id=uk.org.ogsadai.MadnessDataResource userID=/C=UK/O=Music/OU=Bands/L=Madness/CN=Suggs username=graham password=mcpherson userID=* username=nutty password=boys END id=uk.org.ogsadai.SpecialsDataResource END
All persisted resources known to an OGSA-DAI server are specified in resource files.
Resource files are named after their resource. The file name is exactly identical to the resource ID and vice-versa. Resource IDs consist a namespace and a local part. The following are examples of valid resource IDs (and thus also file names):
SomeDataResource some.company.SomeOtherResource DataRequestExecutionResource MySQLDataResource uk.org.ogsadai.JDBCResource
Resource files reside in a
resources directory
located in the OGSA-DAI configuration files directory
Section 17.2.1, “Configuration files directory”.
![]() | Caution |
|---|---|
All files in resources are assumed to
be resource files.
|
A resource file declares the following information for a resource:
id=SomeResource
type=uk.org.ogsadai.DATA_RESOURCE
null, for example:
creationTime=null
null, for example:
terminationTime=null
PROPERTIES and
END delimiters.
http://SomePropertyName or
http://some.other.SomeOtherPropertyName.
![]() | Note |
|---|---|
String-only resource property serialization/deserialization is a characteristic of the implementation of file-based resource configuration and persistence used by OGSA-DAI. This persistence component is an extensibility point and can be completely replaced. Please see Chapter 18, Advanced server configuration. |
PROPERTIES http://uk.org.ogsadai.resource.dataresource.product=MySQL http://uk.org.ogsadai.resource.dataresource.vendor=MySQL http://uk.org.ogsadai.resource.dataresource.version=5.0 END
CONFIG and
END delimiters.
SomePropertyName or
some.other.SomeOtherPropertyName.
CONFIG dai.driver.class=org.gjt.mm.mysql.Driver dai.data.resource.uri=jdbc:mysql://myhost:3306/daitest dai.login.provider=uk.org.ogsadai.LOGIN_PROVIDER END
ACTIVITIES and
END delimiters.
ACTIVITIES uk.org.ogsadai.SQLQuery=uk.org.ogsadai.SQLQuery uk.org.ogsadai.SQLUpdate=uk.org.ogsadai.SQLUpdate END
Data request execution resource files use the generic resource format shown above in Section 17.2.4.2, “Resource files format” but also support the following.
acceptRequests=true
ENGINE-CONFIG and
END delimiters.
ENGINE-CONFIG dai.concurrency.queue.length=20 dai.concurrency.request.pool.size=10 END
Data resource files use the generic resource format shown above in Section 17.2.4.2, “Resource files format” but also support the following.
dataResourceClass=uk.org.ogsadai.resource.dataresource.jdbc.JDBCDataResource
Session files use the generic resource format shown above in Section 17.2.4.2, “Resource files format” but also support the following.
defaultTerminationTime=2880
SESSION-STATE and
END delimiters.
SESSION-STATE something.stored.in.the.session=12345 something.else.stored.in.the.session=Having fun and playing fools. END
Data sink files use the generic resource format shown above in Section 17.2.4.2, “Resource files format” but also support the following.
defaultTerminationTime=2880
Data source files use the generic resource format shown above in Section 17.2.4.2, “Resource files format” but also support the following.
defaultTerminationTime=2880
defaultBufferSize=2000
Request resource files use the generic resource format shown above in Section 17.2.4.2, “Resource files format” but also support the following.
defaultTerminationTime=2880
To summarise therefore, a resource file starts with a block of form:
id=RESOURCE-ID type=RESOURCE-TYPE creationTime=CREATION-TIME terminationTime=TERMINATION-TIME PROPERTIES [NAME=VALUE]* END CONFIG [KEY=VALUE]* END ACTIVITIES [ACTIVITY-NAME=ACTIVITY-ID]* END
Data request execution resources then have a block of form:
acceptRequests=[true|false] ENGINE-CONFIG [KEY=VALUE]* END
Section 17.2.7, “Data request execution resource configuration properties” lists OGSA-DAI data request execution resource configuration properties.
Data resources then have a block of form:
dataResourceClass=CLASS-NAME
Section 17.2.8, “Data resource configuration properties and classes” lists OGSA-DAI data resource classes and configuration properties.
Session resources then have a block of form:
defaultTerminationTime=TERMINATION-TIME-IN-MINUTES-GREATER-THAN-OR-EQ-0 SESSION-STATE [KEY=VALUE]* END
Data source resources then have a block of form:
defaultTerminationTime=TERMINATION-TIME-IN-MINUTES-GREATER-THAN-OR-EQ-0 bufferSize=BUFFER-SIZE-GREATER-THAN-ZERO
Data sink resources then have a block of form:
defaultTerminationTime=TERMINATION-TIME-IN-MINUTES-GREATER-THAN-OR-EQ-0
Request resources then have a block of form:
defaultTerminationTime=TERMINATION-TIME-IN-MINUTES-GREATER-THAN-1
The standard OGSA-DAI data request execution resource file can be seen
in OGSA-DAI source or binary distributions in
deploy/server-config/resources/.
Example OGSA-DAI data resource files - which are used in deploying
data resources - can be seen in OGSA-DAI source or binary
distributions in deploy/config-blanks.
Resource template files are used to configure resources that are dynamically created at runtime. These include:
When a resource is created using a template then it is configured using the template. Resource templates have IDs. OGSA-DAI components that create resources specify the ID of the template to use.
Resource templates are named after the type of resource they are the template for. Resource template IDs have the same format as resource IDs i.e. a namespace and a local part. Section I.3, “Default resource template IDs” lists OGSA-DAIs standard resource template IDs.
Resource template files reside in a
resources directory
located in the OGSA-DAI configuration files directory
Section 17.2.1, “Configuration files directory”.
The format for resource template files is the same as for resource files.
The configuration of common components is specified in a common components configuration file.
![]() | Note |
|---|---|
| OGSA-DAI has no components that use common components configuration. However, any application-specific components developed by third-party developers may make use of this. |
The common components configuration file has the name
config.txt and is
located in the OGSA-DAI configuration files directory
Section 17.2.1, “Configuration files directory”.
The common components configuration file declares zero or more configuration values for common OGSA-DAI components.
SomeKey or
some.other.SomeOtherKey.
CONFIG some.upper.bound=10 some.timeout=100 some.control.parameter=BIN123 some.flag=false END
To summarise therefore, this file is of the form:
[KEY=VALUE1]*
OGSA-DAI's data request execution resource supports the following engine configuration properties:
dai.concurrency.request.pool.size -
number of requests that can be executed concurrently. Must be >= 1.
dai.concurrency.queue.length -
length of pending requests queue. Must be >= 0 and ideally >
the value of
dai.concurrency.request.pool.size.
OGSA-DAI provides support for the following types of data resource.
OGSA-DAI data resources are configured to expose JDBC data resources using the following configuration properties and class name:
dai.driver.class - database driver
class - name of JDBC database driver class.
dai.data.resource.uri - database URI
- connection URI to database.
dai.login.provider - login provider -
ID of OGSA-DAI login provider known to the OGSA-DAI server (see
Section 18.8, “Login provider”) that is configured to provide
database usernames and passwords for this resource.
uk.org.ogsadai.resource.dataresource.jdbc.JDBCDataResource
class.
OGSA-DAI data resources are configured to expose XMLDB data resources using the following configuration properties and class name:
dai.driver.class - database driver
class - name of XMLDB database driver class.
dai.data.resource.uri - database URI
- connection URI to database.
dai.login.provider - login provider -
ID of OGSA-DAI login provider known to the OGSA-DAI server (see
Section 18.8, “Login provider”) that is configured to provide
database usernames and passwords for this resource.
uk.org.ogsadai.resource.dataresource.xmldb.XMLDBDataResource
class.
OGSA-DAI data resources are configured to expose file system data resources using the following configuration properties and class name:
dai.data.resource.path - path to root
directory of file system resource.
uk.org.ogsadai.resource.dataresource.file.FileDataResource
class.
OGSA-DAI data resources are configured to expose resource groups - groups of resource IDs - using the following configuration properties and class name:
RESOURCE-ID=RESOURCE-IDfor each resource in the group, for example:
uk.org.ogsadai.SomeResource=uk.org.ogsadai.SomeResource uk.org.ogsadai.SomeOtherResource=uk.org.ogsadai.SomeOtherResource
uk.org.ogsadai.resource.dataresource.group.ResourceGroupDataResource
class.
Data resources are an OGSA-DAI extensibility point. Third party developers may implement their own data resource classes which will require implementation-specific configuration settings. The third party developers will be able to advise you of these. Please see Chapter 30, How to write a data resource for more details.