Administration Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This chapter describes how to configure application-level settings for AquaLogic Data Services Platform (DSP). The chapter contains the following sections:
You can view and configure runtime settings for DSP-enabled applications, including access control, cache settings, server resources (including thread usage), and log levels.
Note: For details on accessing the Data Services Platform Console (named ldconsole) see Launching the Data Services Platform Console.
To specify general application settings:
The General settings page appears, as illustrated in Figure 5-1. Note that you must be logged into the console using a user name with administrator privileges.
Figure 5-1 General Application Settings Page
Table 5-1 lists the application settings available under the General tab.
Specifies whether the configured security policy settings will be enforced for the application. |
||
Enables access to the application by default (unless a more specific policy blocks it). If enabled, all users can access resources by default, even unauthenticated users. Disallowing default anonymous access disables access to the application by default (unless a more specific policy permits it). The anonymous access option works only with the WebLogic Authorization provider. |
||
Enables or disables (default) the caching of query results for stored queries. For more information about caching, see Configuring the Query Results Cache. |
||
The JNDI data source name for the database where the cache is stored. |
||
The name of the database table where cached data is stored. The default table name is <appName>_CACHE. |
||
A query plan is a compilation of a query. The optimal number of query plans cached depends on the size of the queries. You will need to monitor the memory usage and performance of your server to determine whether to change this setting. |
||
The maximum number of threads in the Data Services Platform server pool used to handle query requests. The default setting is 20. The minimum setting is 1. If the specified value is invalid, the server uses the default value of 20. Note: The maximum threads value that you specify here does not affect the WebLogic Server server thread pool. The value specified here applies only to the thread pool created and used by the Data Services Platform query engine for processing requests on application view, web service, or custom function data sources. For more information on configuring thread counts, see Guidelines for Setting the Thread Count. |
||
The maximum number of threads allowed for a single query. Use this to limit the number of threads spawned by a single query. The actual number of threads used will not exceed the maximum number of threads specified in Maximum Threads, regardless of the Maximum Number of Threads Per Query setting. The default setting is 4. The minimum setting is 1. If the specified value is invalid, the server uses the default value of 4. Note: The maximum threads value that you specify here does not affect the WebLogic Server server thread pool. The value specified here applies only to the thread pool created and used by the Data Services Platform query engine for processing requests on application view and web service data sources. For more information on configuring thread counts, see Guidelines for Setting the Thread Count. |
||
The verbosity of the events logged. The options include the following:
The log file is in the following location: <BeaHome>\user_projects\domains\<domainName>\ |
The optimal thread count settings you configure depends on the physical resources of the machine on which you deploy Data Services Platform, the anticipated load, and the type of application you are deploying. Increasing the number of threads can accelerate processing, but since each thread consumes memory, you must achieve a balance based on the available resources.
Use the following general guidelines for settings the thread count:
Data Services Platform only uses the thread pool for acquiring web service calls; threads are only spawned when web services are invoked by queries. Therefore, an application that does not rely on web service content can have a relatively low thread count setting.
For more information on tuning performance for the WebLogic Server and applications, see the following:
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/perform/index.html
You can view statistics and status information for a Data Services Platform application, particularly relating to query activities, using the Monitor tab. You can also monitor active application processes, displaying information such as the user who initiated the process, the time is has been running, and the number of cached entries for the process type.
The General settings page appears. Note that you must be logged into the console using a user name with administrator privileges.
The monitoring information for the application appears, as illustrated in Figure 5-2.
Table 5-2 describes the information displayed in the Monitor tab.
Once invoked, a data service function runs until either it gets a result or a time-out expires (assuming a time-out period is set). The time-out setting enables you to specify, in the query, the maximum time a query should wait for unresponsive data sources.
In some cases, it may be necessary to cancel the execution of a function. The Monitor tab enables you to view and cancel currently running queries. The page also displays the user associated with the query and cache information.
When you terminate a process, the operation in progress finishes, then the process completes without executing subsequent nodes.
Note: The submit query is rolled back only in cases when you are using the XA driver.
To terminate function execution:
Note: Terminating a query triggers a weblogic.xml.query.exceptions.XQuerySystemException on the client.
An administrative property is a user-defined property that you can configure using the DSP Console. The value of an administrative property can be used in XQuery functions, either in data service functions or security XQuery functions.
Note: For information on security XQuery functions, see Securing Data Services Platform Resources.
An administrative property is a convenient way of having function parameters that can be easily changed by the administrator, without having to modify the body of either the data service function or security XQuery function.
The administrative property has application scope—any data service in the application can use the property value. The property value can be accessed using XQuery with the BEA function get-property()
. The function takes the name of the property as an argument and returns the value as a string. It also takes an argument that serves as the default value for the parameter. This value is used if the property is not configured in the console.
The following shows a complete example of an XQuery Function Library function using an administrative property:
declare function f1:getMaximumAccountViewable() as xsd:decimal {
let $amount := fn-bea:get-property("maxAccountValue", "1000.00")
cast as xsd:decimal
return $amount
};
To manage administrative properties:
The General Settings page appears. (Note that you must be logged into the console using a user name with administrator privileges.)
The list of property names currently defined appears in the table, as illustrated in Figure 5-3.
Figure 5-3 Administrative Properties Tab
Table 5-3 describes the information displayed in the Administrative Properties tab:
In some instances, Data Services Platform may not be able to read data from a database table because another application has locked the table, causing queries issued by Data Services Platform to be queued until the application releases the lock. To prevent this, you can set the transaction isolation to read uncommitted in the JDBC connection pool on your WebLogic Server.
To set the transaction isolation level:
http://
<HostName>
:<Port>
/console
For example, to start the Administration Console for a local instance of WebLogic Server (running on your own machine), type the following URL in a web browser address field:
http://localhost:7001/console/
The Connections tab appears, as illustrated in Figure 5-4.
![]() ![]() |
![]() |
![]() |