bea.com | products | dev2dev | support | askBEA
 Download Docs   Site Map   Glossary 
Search

Administration Guide

 Previous Next Contents Index View as PDF  

Managing the Liquid Data Server Repository

This topic describes how to manage the BEA Liquid Data for WebLogicTM repository (also called the server repository). It contains the following sections:

You use the Administration Console to configure and manage the server repository. You must log into the Administration Console with sufficient permissions to perform the necessary operations in the file system on which the server repository resides. For  more information, see Implementing Security.

 


About the Liquid Data Server Repository

This topic describes the server repository. It contains the following sections:

Contents and Organization of the Server Repository

The server repository is the central location for storing and sharing the following Liquid Data information:

The server repository provides a file system structure that organizes this information by category. Information is stored in separate folders in various formats. For  example, stored queries are saved as XQ files in the stored_queries folder. You use the Administration Console to manage these folders and files, as well as to configure the server repository location.

Warning: Use the Repository tab on the Liquid Data node in the Administration Console—not file system commands or tools—to manage folders and files in the server repository.

Server Repository Location

By default, the server repository resides on a shared file system of the host Liquid Data server in the following location:

BEA_HOME\user_projects\domainName\repositoryRootDir

where

You use the General tab on the Liquid Data node in the Administration Console to configure the root directory of the server repository. You can specify a relative path (relative to the current domain directory) or a fully-qualified path. If you specify a location that has an existing server repository, the existing server repository is not overwritten. For more information, see Configuring Liquid Data Server Settings.

You configure only one server repository per Liquid Data deployment. The server repository must reside on a shared volume so that others can access it. In a clustered environment, all managed Liquid Data servers must be configured to point to the same server repository on a shared volume, such as on the local file system of the Administration Server host machine. For more information, see "Clustered Deployments" in Deployment Tasks in Deploying Liquid Data.

Server Repository File System Hierarchy

The server repository root directory contains the following folders:

Table 16-1 File System Hierarchy of the Server Repository  

Folder

Contents

custom_functions

Custom functions library definition files (CFLD) containing declarations of custom functions in an XML format. For more information, see Using Custom Functions in Invoking Queries Programmatically and Configuring Access to Custom Functions.

custom_lib

Java Archive (JAR) files containing the Java implementations of custom functions. For more information, see Using Custom Functions in Invoking Queries Programmatically and Configuring Access to Custom Functions.

data_views

Stored data view (XV) files created using the Data View Builder. For more information, see Configuring Access to Data Views and Designing Queries in Building Queries and Data Views.

dtds

Not supported. Source document type definition (DTD) files. Source DTD files are associated with the XML data files stored in the xml_files folder. For more information, see Configuring Access to XML Files.

import_export

Exported Liquid Data configuration files. For more information, see Importing and Exporting Liquid Data Configurations.

schemas

Source and target schema (XSD) files. Source schema files are associated with the XML data files stored in the xml_files folder. For more information, see Configuring Access to XML Files.

stored_queries

Stored query (XQ) files created using the Data View Builder. For more information, see Designing Queries in Building Queries and Data Views.

web_services

Web Services Description Language (WSDL) files for Web services used as data sources. For more information, see Configuring Access to Web Services.

web_services_gen

Application archive (EAR) files of Web services that have been published through Liquid Data. For more information, see Generating and Publishing Web Services.

xml_files

XML data files used as data sources for views and queries. For more information, see Configuring Access to XML Files.


 

Considerations for Evolving the Repository

The server repository uses the underlying file system of the host machine. The server repository does not provide advanced features, however, such as file locking mechanisms or version control.

In a shared development environment, therefore, consider the implications of deleting, moving, or renaming files to which others or the Liquid Data Server require access. If  possible, make server repository changes during idle periods to avoid file contention problems. In addition, consider implementing a third-party source control system to provide locking and version control for repository folders and files.

When deploying Liquid Data in a production environment, you can add items to the server repository without interrupting the run-time state of the system.

In general, the best approach is to populate and refine the server repository in a development environment, create a staging environment for testing and, when the repository is stable, then switch the staging server from development to production mode.

In a clustered environment, all managed Liquid Data servers must be configured to point to the same server repository on a shared volume, such as on the local file system of the Administration Server host machine. For more information, see "Clustered Deployments" in Deployment Tasks in Deploying Liquid Data.

 


Navigating to the Repository Tab

To navigate to the Repository tab on the Liquid Data node:

  1. In the left pane of the Administration Console, click the Liquid Data node.

  2. Click the Repository tab.

    The Administration Console displays the contents of the root directory of the server repository. For more information, see Server Repository Location.

 


Browsing the Server Repository

You browse the server repository by navigating the file system hierarchy. When you click the Repository tab, the Administration Console displays the root directory of the server repository.

Note: You must log into the Administration Console with at least read access to browse items in the server repository. For more information, see Administration Console Security.

To navigate to a folder on the Repository tab:

To navigate to a parent folder on the Repository tab:

To perform an operation on a folder or file in the repository:

 


Working with Folders and Files in the Server Repository

This topic describes how to work with folders and files in the server repository. It  contains the following sections:

Note: In this topic, the term item refers to both folders and files.

Downloading Files From the Server Repository

You can download server repository files, stored on a remote server, to a local system. You might want to download files to retrieve a local copy for editing purposes. After changing the local copy of the file, you can then upload it to the remote server again, as described in Uploading Files to the Server Repository.

Note: You must log into the Administration Console with at least read access to download files from the server repository. For more information, see Administration Console Security.

To download a file from the server repository:

  1. Navigate to the server repository folder in which the file you want to download resides.

  2. Next to the file that you want to download, click the Download icon.


     

    The Administration Console asks you whether you want to save the file.

    Figure 16-1 Download Action Prompt


     

  3. Click Save.

    The Administration Console displays a File Save As window.

  4. Navigate to the target directory.

  5. Specify a different file name, if you want.

  6. Click Save.

    The Administration Console downloads the selected file to the target location.

Uploading Files to the Server Repository

You can upload files to the server repository that you have created or modified locally, such as XML schemas or custom function library definition (CFLD) files.

Note: You must log into the Administration Console with at least modify access to upload files to the server repository. For more information, see Administration Console Security.

To upload a file to the server repository:

  1. Navigate to the target repository folder to which you want to upload files.

  2. Click the Upload icon.


     

    The Administration Console prompts you to specify the name of a local file to upload.

    Table 16-2 Uploading a File To the Repository  

    Field

    Description

    Local File

    Name of the file to upload.


     

  3. Do one of the following:

    Note: You cannot select a folder.

  4. Click Upload.

    The Administration Console uploads the selected file to the selected directory.

Creating Sub-Folders

You can create sub-folders in any folder in the server repository. For example, you might create sub-folders in the stored_queries directory to define a hierarchy of stored queries for different types of users. You could create a sub-folder named hr_queries to contain stored queries for confidential personnel data, and another folder named sales_queries to contain stored queries for sales data. Once created, you would assign separate ACLs to each folder to ensure that only authorized users can access these queries, as described in Assigning ACLs to Liquid Data Resources.

Note: You must log into the Administration Console with at least modify access to create a folder. For more information, see Administration Console Security.

To create a folder in the server repository:

  1. Navigate to the repository folder to which you want to add a folder.

  2. Click the Create New Folder icon.


     

    The Administration Console prompts you to specify a folder name.

    Table 16-3 Creating a New Folder in the Repository  

    Field

    Description

    New Folder Name

    New name for the folder.

    The name must comply with the naming standards of your file system. For a folder name, do not use slashes (/) or periods (.) in the name.


     

  3. Enter the name of the new folder.

  4. Click Create.

    The Administration Console creates the specified folder.

Copying and Pasting Files in the Server Repository

You can copy files from one location in the server repository and paste them in a different location or in the same location with different names.

Note: You must log into the Administration Console with at least read access to the source folder and modify access to the target folder. For more information, see Administration Console Security.

To copy and paste a file:

  1. Browse the server repository and find the item that you want to copy.

  2. Next to the file that you want to copy, click the Copy button.


     

    The Administration Console displays a Paste link.

  3. Browse the server repository and select the target folder where you want to paste the selected item.

  4. Click Paste.

    The Administration Console prompts you to specify the target file name.

    Table 16-4 Pasting a Copied File in the Repository  

    Field

    Description

    File Name

    Name for the target file, including extension.

    The name must comply with the naming standards of your file system. For a folder name, do not use slashes (/) or periods (.) in the name.


     

  5. Click Paste.

    The Administration Console pastes the selected item in the target location.

Renaming Folders and Files in the Server Repository

You can rename files or folders in the server repository. You might want to rename items if, for example, you wanted to assign new names to files or folders that you copied from another location.

Note: You must log into the Administration Console with at least modify access to rename an item. For more information, see Administration Console Security.

To rename an item:

  1. Browse the server repository and select the item that you want to rename.

    Note: You cannot rename any of the default repository folders—only sub-folders that have been created within them, according to the instructions in Creating Sub-Folders.

  2. Next to the folder or file to rename, click Rename.

    The Administration Console prompts you to specify a different name.

    Table 16-5 Renaming a Folder or File in the Repository  

    Field

    Description

    New Name

    New name for the selected folder or file.

    The name must comply with the naming standards of your file system.

    • For a folder name, do not use slashes (/) or periods (.).

    • For a file name, do not use slashes (/) and use periods only to denote the extension.

    Note: Do not change the filename extension for files, such as stored queries or data views.


     

  3. Enter the new name of the item.

  4. Click Rename.

The Administration Console renames the selected item with the name you specified.

Deleting Folders and Files in the Server Repository

You can delete folders and files from the server repository that you no longer need. You can delete only empty folders, so if you want to delete a folder, you must first delete its contents.

Notes: You must log into the Administration Console with at least modify access to delete an item. For more information, see Administration Console Security.

To delete items from the server repository:

  1. Browse the server repository and select the folder or file that you want to delete.

    Note: You cannot delete any of the default repository folders—only sub-folders that have been created within them, which is described in Creating Sub-Folders.

  2. Click Delete.

The Administration Console deletes the specified file or folder and removes it from the file system.

Notes: If you delete a stored query for which caching is enabled, Liquid Data also deletes any cached results. For more information, see Configuring the Query Results Cache.

Configuring Secure Access to Items in the Server Repository

If security is enabled on the Liquid Data server, you must explicitly configure security for all items in the server repository. To configure security, you assign permissions to folders and files using Access Control Lists (ACLs). At a minimum, you need to assign ACLs to the default repository folders. In addition, you might want to assign ACLs to individual files or for sub-folders in the default folders. Before you assign ACLs, you must define groups, users, and access levels in the Administration Console, as described in Implementing Security.

Permissions determine the tasks that users can perform on server repository items in the Data View Builder and the Administration Console. Users must be logged in with the following permissions:

Table 16-6 Permissions Required for Server Repository Items in the Administration Console  

Access Level

Task(s)

read

View, download, or copy a folder or file in the repository.

modify

Create, edit, rename, paste, delete, or upload a folder or file in the repository.

execute

Execute a stored query.


 

To assign ACLs to an item in the repository:

  1. Browse the server repository to find the folder or file to which you want to assign ACLs.

  2. Next to the folder or file you want, click ACL.

    The Administration Console prompts you to specify the ACL Name.


     

    Table 16-7 Assigning an ACL to a Folder or File in the Repository  

    Field

    Description

    ACL Name

    The ACL name for the selected folder or file. By default, the Administration Console supplies a default ACL name using the following naming convention:

    LD.folderName.fileName

    where

    • folderName is either the name of the folder to which to assign ACLs, or the name of the folder containing the item (folder or file) to which to assign ACLs.

    • fileName is the name of the filename, if assigning ACLs to a particular file.

  3. Click Apply.

    The Administration Console displays the WebLogic Server ACL page.


     

  4. To add a new ACL, click on Add a new Permission.

    The Administration Console displays the Group tab.

  5. Assign permissions, users, and groups as needed according to the instructions in Assigning Permissions, Users, and Groups to ACLs.

 


Creating Data Views from Stored Queries

Before a Liquid Data query can access data in a data view, the data view must be configured as a Liquid Data data source. Data views are derived from stored queries. Only one data view can be created from a stored query. To create a data view, you need to configure the stored query using the Repository tab on the Liquid Data node in the Administration Console. For  more information about data views, see Configuring Access to Data Views and Using Views as Data Sources in Building Queries and Data Views.

Note: There are two ways to create a data view data source description—using the Create Data View link in the server repository, as described in this section, or using the Data View tab on the Liquid Data node, as described in Creating a Data View Data Source Description.

You can create a data view:

  1. Browse the stored_queries folder in the server repository and select the stored query that you want to use for the data view.

    Note: The stored query cannot already have an associated data view.

  2. Click Data View Data Source.

    The Administration Console copies the selected stored query to the data_views folder, assigns an xv extension to the file name, and displays the Data View configuration tab.


     

  3. Enter the following information:

    Table 16-8 Liquid Data Data View Configuration  

    Field

    Description

    Name

    Logical name of the data view. You can use any meaningful name you want. The query uses this name to reference the data source. Required.

    Query File

    Name of a stored query file in the repository, created either in the Data View Builder or a hand-coded query. Enter the query file name or click Browse Repository to select it. Required.

    Schema

    Schema for the query. Enter the schema file name or click Browse Repository to select it. Required.


     

  4. Click Create.

    The Administration Console displays a list of data views configured as data sources, including the data view you just created.

 


Configuring the Results Cache for Stored Queries

You can configure the result cache for individual stored queries. Before you configure results caching, it must be explicitly enabled in the Cache Results field on the General tab on the Liquid Data node, as described in Configuring Liquid Data Server Settings. For more information about the results cache and the Cache tab on the Liquid Data node, see Configuring the Query Results Cache.

 

Back to Top Previous Next