Access Keys:
Skip to content (Access Key - 0)

Federated Query Processor

compared with
Version 6 by Clayton Clark
on Jun 28, 2010 14:39.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (12)

View Page History

{tip}Once you have installed caGrid, the FQP software can be found in the directory location where you installed caGrid, in the _caGrid/projects/fqp_ directory. This guide will refer to that location as *{_}FQP_HOME{_}*
{tip}
To install caGrid/FederatedQueryProcessor and set up a container, please complete the following steps:
{tip}To install caGrid/FederatedQueryProcessor and set up a container, see the following sections.
{include:caGrid14:Install caGrid and Configure a Secure Container Using the caGrid 1.4 Installer}
h1. Configuring the Service
----
{tip}The Federated Query Processor service requires that the [caGrid Transfer Service|transfer:Home] be deployed to the same Tomcat or JBoss container the FQP service will be deployed to. The Transfer service _must be deployed first_.
{tip}
{tip}The Federated Query Processor is an Introduce-created service, so supports all the standard Introduce deployment processes, which are described in the [Introduce Administrator's Guide|introduce14:Administrators Guide##AdministratorsGuide-Deployment Undeployment].

For example, to deploy the service to Tomcat from the command line, type the following command from the *{_}FQP_HOME{_}* directory:

{terminal}> ant deployTomcat{terminal}
{terminal}> ant deployTomcat{terminal}Start up Tomcat so that your service is available. For Tomcat, run this command:

*Linux / Unix*
{terminal}> $CATALINA_HOME/bin/startup.sh{terminal}{*}Windows*
*Windows*
{terminal}> %CATALINA_HOME%\bin\startup.bat{terminal}
h1. Validating FQP
}
}
{code}
{code}The simple main method takes two parameters. The first is the URL of the Federated Query Processor service, and the second is the filename of a DCQL query to execute. Try running the following query, which simply queries the caArray data service for Publications with an ID less than or equal to 10.

{code:xml}<ns1:DCQLQuery xmlns:ns1="http://caGrid.caBIG/1.0/gov.nih.nci.cagrid.dcql">
<ns1:targetServiceURL>http://array.nci.nih.gov:80/wsrf/services/cagrid/CaArraySvc</ns1:targetServiceURL>
</ns1:DCQLQuery>
{code}
{code}Executing this query should produce results similar to the following:

{code:xml}<ns1:DCQLQueryResultsCollection xmlns:ns1="http://caGrid.caBIG/1.0/gov.nih.nci.cagrid.dcqlresult">
Last edited by
Saba Bokhari (827 days ago) , ...
Adaptavist Theme Builder Powered by Atlassian Confluence