You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2022/05/12 13:18:22 UTC
svn commit: r1900838 [29/50] - in /jackrabbit/site/live/jcr: ./ components/ css/ images/ js/ ocm/ status/
Modified: jackrabbit/site/live/jcr/search-implementation.html
URL: http://svn.apache.org/viewvc/jackrabbit/site/live/jcr/search-implementation.html?rev=1900838&r1=1900837&r2=1900838&view=diff
==============================================================================
--- jackrabbit/site/live/jcr/search-implementation.html (original)
+++ jackrabbit/site/live/jcr/search-implementation.html Thu May 12 13:18:21 2022
@@ -1,452 +1,176 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at 2020-07-08
- | Rendered using Apache Maven Fluido Skin 1.3.1
+ | Generated by Apache Maven Doxia Site Renderer 1.9.2 from src\site\markdown/search-implementation.md at 2022-05-12
+ | Rendered using Apache Maven Fluido Skin 1.9
-->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20200708" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Jackrabbit - Search implementation</title>
- <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.1.min.css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 1.9.2" />
+ <title>Apache Jackrabbit – Search implementation</title>
+ <link rel="stylesheet" href="./css/apache-maven-fluido-1.9.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
-
-
- <script type="text/javascript" src="./js/apache-maven-fluido-1.3.1.min.js"></script>
-
-
- </head>
- <body class="topBarEnabled">
-
-
-
-
-
-
- <a href="http://github.com/apache/jackrabbit">
+ <script src="./js/apache-maven-fluido-1.9.min.js"></script>
+<!-- Matomo -->
+<script>
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ /* We explicitly disable cookie tracking to avoid privacy issues */
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="https://matomo.privacy.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '4']);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<!-- End Matomo Code -->
+ </head>
+ <body class="topBarEnabled">
+ <a href="https://github.com/apache/jackrabbit">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
-
-
-
-
-
- <div id="topbar" class="navbar navbar-fixed-top ">
+ <header id="topbar" class="navbar navbar-fixed-top ">
<div class="navbar-inner">
- <div class="container-fluid">
+ <div class="container-fluid">
<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
-
- <a class="brand" href="index.html" title="Apache Jackrabbit">
-
-
- <img src="images/logos/jlogo.gif" alt="Apache Jackrabbit" />
-
- </a>
-
- <ul class="nav">
- <li class="dropdown">
+<a class="brand" href="index.html" title="Apache Jackrabbit"><img src="images/logos/jlogo.gif" alt="Apache Jackrabbit" />
+</a>
+ <ul class="nav">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Jackrabbit <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="index.html" title="Welcome">Welcome</a>
-</li>
-
- <li> <a href="downloads.html" title="Downloads">Downloads</a>
-</li>
-
- <li> <a href="articles.html" title="Articles">Articles</a>
-</li>
-
- <li> <a href="frequently-asked-questions.html" title="FAQ">FAQ</a>
-</li>
-
- <li> <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a>
-</li>
-
- <li> <a href="jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a>
-</li>
- </ul>
+ <li><a href="index.html" title="Welcome">Welcome</a></li>
+ <li><a href="downloads.html" title="Downloads">Downloads</a></li>
+ <li><a href="articles.html" title="Articles">Articles</a></li>
+ <li><a href="frequently-asked-questions.html" title="FAQ">FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a></li>
+ <li><a href="jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a>
-</li>
-
- <li> <a href="standalone-server.html" title="Standalone Server">Standalone Server</a>
-</li>
-
- <li> <a href="jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a>
-</li>
-
- <li> <a href="first-hops.html" title="First Hops">First Hops</a>
-</li>
-
- <li> <a href="jcr-api.html" title="JCR & API">JCR & API</a>
-</li>
-
- <li> <a href="jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a>
-</li>
-
- <li> <a href="deployment-models.html" title="Deployment Models">Deployment Models</a>
-</li>
-
- <li> <a href="jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a>
-</li>
-
- <li> <a href="node-types.html" title="Node Types">Node Types</a>
-</li>
-
- <li> <a href="object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a>
-</li>
- </ul>
+ <li><a href="getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a></li>
+ <li><a href="standalone-server.html" title="Standalone Server">Standalone Server</a></li>
+ <li><a href="jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a></li>
+ <li><a href="first-hops.html" title="First Hops">First Hops</a></li>
+ <li><a href="jcr-api.html" title="JCR & API">JCR & API</a></li>
+ <li><a href="jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a></li>
+ <li><a href="deployment-models.html" title="Deployment Models">Deployment Models</a></li>
+ <li><a href="jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a></li>
+ <li><a href="node-types.html" title="Node Types">Node Types</a></li>
+ <li><a href="object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a>
-</li>
-
- <li> <a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a>
-</li>
-
- <li> <a href="building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a>
-</li>
-
- <li> <a href="mailing-lists.html" title="Mailing Lists">Mailing Lists</a>
-</li>
-
- <li> <a href="issue-tracker.html" title="Issue Tracker">Issue Tracker</a>
-</li>
-
- <li> <a href="source-repository.html" title="Source Repository">Source Repository</a>
-</li>
-
- <li> <a href="continuous-integration.html" title="Continuous Integration">Continuous Integration</a>
-</li>
-
- <li> <a href="website.html" title="Website">Website</a>
-</li>
-
- <li> <a href="creating-releases.html" title="Creating Releases">Creating Releases</a>
-</li>
-
- <li> <a href="supporting-software-attribution.html" title="Attribution">Attribution</a>
-</li>
-
- <li> <a href="privacy-policy.html" title="Privacy">Privacy</a>
-</li>
- </ul>
+ <li><a href="jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a></li>
+ <li><a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a></li>
+ <li><a href="building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a></li>
+ <li><a href="mailing-lists.html" title="Mailing Lists">Mailing Lists</a></li>
+ <li><a href="issue-tracker.html" title="Issue Tracker">Issue Tracker</a></li>
+ <li><a href="source-repository.html" title="Source Repository">Source Repository</a></li>
+ <li><a href="continuous-integration.html" title="Continuous Integration">Continuous Integration</a></li>
+ <li><a href="website.html" title="Website">Website</a></li>
+ <li><a href="creating-releases.html" title="Creating Releases">Creating Releases</a></li>
+ <li><a href="supporting-software-attribution.html" title="Attribution">Attribution</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Software Foundation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a>
-</li>
- </ul>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" title="Privacy">Privacy</a></li>
+ </ul>
</li>
- </ul>
-
-
-
-
- </div>
-
+ </ul>
</div>
</div>
- </div>
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <div id="bannerLeft">
- <h2>Apache Jackrabbit Site</h2>
- </div>
- </div>
- <div class="pull-right"> </div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
-
-
- <li id="publishDate">Last Published: 2020-07-08
- </li>
-
-
-
-
- </ul>
- </div>
+ </header>
+ <div class="container-fluid">
+ <header>
+ <div id="banner">
+ <div class="pull-left"><div id="bannerLeft"><h2>Apache Jackrabbit Site</h2>
+</div>
+</div>
+ <div class="pull-right"></div>
+ <div class="clear"><hr/></div>
+ </div>
-
+ <div id="breadcrumbs">
+ <ul class="breadcrumb">
+ <li id="publishDate">Last Published: 2022-05-12</li>
+ </ul>
+ </div>
+ </header>
<div class="row-fluid">
- <div id="leftColumn" class="span3">
+ <header id="leftColumn" class="span2">
+ <nav class="well sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Apache Jackrabbit</li>
+ <li><a href="index.html" title="Welcome"><span class="none"></span>Welcome</a></li>
+ <li><a href="downloads.html" title="Downloads"><span class="none"></span>Downloads</a></li>
+ <li><a href="articles.html" title="Articles"><span class="none"></span>Articles</a></li>
+ <li><a href="frequently-asked-questions.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki"><span class="none"></span>Archived Jackrabbit Wiki</a></li>
+ <li><a href="jackrabbit-history.html" title="Jackrabbit History"><span class="none"></span>Jackrabbit History</a></li>
+ <li class="nav-header">Documentation</li>
+ <li><a href="getting-started-with-apache-jackrabbit.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
+ <li><a href="standalone-server.html" title="Standalone Server"><span class="none"></span>Standalone Server</a></li>
+ <li><a href="jackrabbit-components.html" title="Jackrabbit Components"><span class="none"></span>Jackrabbit Components</a></li>
+ <li><a href="first-hops.html" title="First Hops"><span class="none"></span>First Hops</a></li>
+ <li><a href="jcr-api.html" title="JCR & API"><span class="none"></span>JCR & API</a></li>
+ <li><a href="jackrabbit-architecture.html" title="Jackrabbit Architecture"><span class="none"></span>Jackrabbit Architecture</a></li>
+ <li><a href="deployment-models.html" title="Deployment Models"><span class="none"></span>Deployment Models</a></li>
+ <li><a href="jackrabbit-configuration.html" title="Jackrabbit Configuration"><span class="none"></span>Jackrabbit Configuration</a></li>
+ <li><a href="node-types.html" title="Node Types"><span class="none"></span>Node Types</a></li>
+ <li><a href="object-content-mapping.html" title="Object Content Mapping"><span class="none"></span>Object Content Mapping</a></li>
+ <li class="nav-header">Development</li>
+ <li><a href="jackrabbit-team.html" title="Jackrabbit Team"><span class="none"></span>Jackrabbit Team</a></li>
+ <li><a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap"><span class="none"></span>Jackrabbit Roadmap</a></li>
+ <li><a href="building-jackrabbit.html" title="Building Jackrabbit"><span class="none"></span>Building Jackrabbit</a></li>
+ <li><a href="mailing-lists.html" title="Mailing Lists"><span class="none"></span>Mailing Lists</a></li>
+ <li><a href="issue-tracker.html" title="Issue Tracker"><span class="none"></span>Issue Tracker</a></li>
+ <li><a href="source-repository.html" title="Source Repository"><span class="none"></span>Source Repository</a></li>
+ <li><a href="continuous-integration.html" title="Continuous Integration"><span class="none"></span>Continuous Integration</a></li>
+ <li><a href="website.html" title="Website"><span class="none"></span>Website</a></li>
+ <li><a href="creating-releases.html" title="Creating Releases"><span class="none"></span>Creating Releases</a></li>
+ <li><a href="supporting-software-attribution.html" title="Attribution"><span class="none"></span>Attribution</a></li>
+ <li class="nav-header">Apache Software Foundation</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"><span class="none"></span>Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors"><span class="none"></span>Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Privacy"><span class="none"></span>Privacy</a></li>
+ </ul>
+ </nav>
<div class="well sidebar-nav">
-
-
- <ul class="nav nav-list">
- <li class="nav-header">Apache Jackrabbit</li>
-
- <li>
-
- <a href="index.html" title="Welcome">
- <i class="none"></i>
- Welcome</a>
- </li>
-
- <li>
-
- <a href="downloads.html" title="Downloads">
- <i class="none"></i>
- Downloads</a>
- </li>
-
- <li>
-
- <a href="articles.html" title="Articles">
- <i class="none"></i>
- Articles</a>
- </li>
-
- <li>
-
- <a href="frequently-asked-questions.html" title="FAQ">
- <i class="none"></i>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki">
- <i class="none"></i>
- Archived Jackrabbit Wiki</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-history.html" title="Jackrabbit History">
- <i class="none"></i>
- Jackrabbit History</a>
- </li>
- <li class="nav-header">Documentation</li>
-
- <li>
-
- <a href="getting-started-with-apache-jackrabbit.html" title="Getting Started">
- <i class="none"></i>
- Getting Started</a>
- </li>
-
- <li>
-
- <a href="standalone-server.html" title="Standalone Server">
- <i class="none"></i>
- Standalone Server</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-components.html" title="Jackrabbit Components">
- <i class="none"></i>
- Jackrabbit Components</a>
- </li>
-
- <li>
-
- <a href="first-hops.html" title="First Hops">
- <i class="none"></i>
- First Hops</a>
- </li>
-
- <li>
-
- <a href="jcr-api.html" title="JCR & API">
- <i class="none"></i>
- JCR & API</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-architecture.html" title="Jackrabbit Architecture">
- <i class="none"></i>
- Jackrabbit Architecture</a>
- </li>
-
- <li>
-
- <a href="deployment-models.html" title="Deployment Models">
- <i class="none"></i>
- Deployment Models</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-configuration.html" title="Jackrabbit Configuration">
- <i class="none"></i>
- Jackrabbit Configuration</a>
- </li>
-
- <li>
-
- <a href="node-types.html" title="Node Types">
- <i class="none"></i>
- Node Types</a>
- </li>
-
- <li>
-
- <a href="object-content-mapping.html" title="Object Content Mapping">
- <i class="none"></i>
- Object Content Mapping</a>
- </li>
- <li class="nav-header">Development</li>
-
- <li>
-
- <a href="jackrabbit-team.html" title="Jackrabbit Team">
- <i class="none"></i>
- Jackrabbit Team</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap">
- <i class="none"></i>
- Jackrabbit Roadmap</a>
- </li>
-
- <li>
-
- <a href="building-jackrabbit.html" title="Building Jackrabbit">
- <i class="none"></i>
- Building Jackrabbit</a>
- </li>
-
- <li>
-
- <a href="mailing-lists.html" title="Mailing Lists">
- <i class="none"></i>
- Mailing Lists</a>
- </li>
-
- <li>
-
- <a href="issue-tracker.html" title="Issue Tracker">
- <i class="none"></i>
- Issue Tracker</a>
- </li>
-
- <li>
-
- <a href="source-repository.html" title="Source Repository">
- <i class="none"></i>
- Source Repository</a>
- </li>
-
- <li>
-
- <a href="continuous-integration.html" title="Continuous Integration">
- <i class="none"></i>
- Continuous Integration</a>
- </li>
-
- <li>
-
- <a href="website.html" title="Website">
- <i class="none"></i>
- Website</a>
- </li>
-
- <li>
-
- <a href="creating-releases.html" title="Creating Releases">
- <i class="none"></i>
- Creating Releases</a>
- </li>
-
- <li>
-
- <a href="supporting-software-attribution.html" title="Attribution">
- <i class="none"></i>
- Attribution</a>
- </li>
-
- <li>
-
- <a href="privacy-policy.html" title="Privacy">
- <i class="none"></i>
- Privacy</a>
- </li>
- <li class="nav-header">Apache Software Foundation</li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction">
- <i class="none"></i>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">
- <i class="none"></i>
- Sponsorship</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors">
- <i class="none"></i>
- Current Sponsors</a>
- </li>
- </ul>
-
-
-
- <hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="http://www.apache.org/jackrabbit-site/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
- </a>
- </div>
+ <hr />
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
+ </div>
</div>
- </div>
-
-
- <div id="bodyColumn" class="span9" >
-
- <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+ </header>
+ <main id="bodyColumn" class="span10" >
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
@@ -459,65 +183,47 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
- limitations under the License. --><h1>Search implementation</h1>
+ limitations under the License.
+-->
+<h1>Search implementation</h1>
<p>Jackrabbit implements both the mandatory XPath and optional SQL query syntax. Its design follows the goal of the JSR-170 specification that all the mandatory query features can be expressed either in XPath or in SQL. Thus, the actual implementation of the query engine is independent of the query syntax used, though Jackrabbit’s query internals are closer to XPath than SQL, because of the hierarchical structure of a JCR.</p>
<p>The major parts of the query implementation are:</p>
-
<ul>
-
+
<li>XPath Parser</li>
-
<li>SQL Parser</li>
-
<li>Abstract Query Tree</li>
-
<li>Query engine</li>
-
<li>Utilities</li>
-</ul>
-<div class="section">
-<h2>XPath Parser<a name="XPath_Parser"></a></h2>
-<p>The XPath query parser is based on the W3C XQuery grammar definition which is not yet final but can be downloaded as draft here. The reason why Jackrabbit uses the XQuery grammar, rather than the XPath grammar, is, that JSR-170 specifies an ‘order by’ clause for the XPath query syntax. This ‘order by’ clause is borrowed from the XQuery FLWOR expression syntax. Before parsing the XPath query in Jackrabbit, the statement is surrounded with dummy code, to form a valid XQuery FLWOR expression and is then passed to the XQuery parser. The actual parser is a class generated by JavaCC, which uses the grammar that can be found in src/grammar/xpath. The parsed XPath statement is then translated into an Abstract Query Tree. See class: <tt>org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder</tt></p></div>
-<div class="section">
-<h2>SQL Parser<a name="SQL_Parser"></a></h2>
-<p>The SQL query parser is generated from a grammar definition located in src/grammar/sql. After parsing, the Abstract Syntax Tree is translated into the Jackrabbit internal Abstract Query Tree. See class: <tt>org.apache.jackrabbit.core.query.sql.JCRSQLQueryBuilder</tt></p></div>
-<div class="section">
-<h2>Abstract Query Tree<a name="Abstract_Query_Tree"></a></h2>
-<p>The Abstract Query Tree (AQT) is the common query description format that allows Jackrabbit to implement a query engine which is (to a certain extent) independent of the query syntax used (XPath or SQL). The AQT consists of the classes that are derived from: <tt>org.apache.jackrabbit.core.query.QueryNode</tt></p>
-<p>Please note that the AQT is Jackrabbit internal and not exposed to a client using the JCR API!</p></div>
-<div class="section">
-<h2>Query Engine<a name="Query_Engine"></a></h2>
-<p>Now this is where the meat is. The actual implementation of the query engine is configurable. One needs to implement the interface: <tt>org.apache.jackrabbit.core.query.QueryHandler</tt>. Jackrabbit comes with an implementation that uses a Lucene index: <tt>org.apache.jackrabbit.core.query.lucene.SearchIndex</tt> This index is independent of the persistence manager in use. However it is also possible to write a QueryHandler implementation which is aware of the underlying storage (e.g. a database) and executes the query on the ‘native’ storage.</p>
-<p>The class <tt>org.apache.core.query.lucene.LuceneQueryBuilder</tt> translates the Abstract Query Tree into a query that can be executed against the Lucene index. Jackrabbit implements a couple of extensions to the standard Lucene classes, primarily to improve performance in an environment with incremental indexing like Jackrabbit. Instead of a single index, Jackrabbit uses generations of indexes to circumvent costly <tt>IndexReader</tt> / <tt>IndexWriter</tt> creation. See: <tt>org.apache.jackrabbit.core.query.lucene.MultiIndex</tt>. The most recent generation of the search index is held completely in memory. See: <tt>org.apache.jackrabbit.core.query.lucene.VolatileIndex</tt>. It is comparable with the garbage collection in Java, where generations are used to move living objects from the young into the old generation over time. Queries are then executed on a <tt>MultiReader</tt> that spans all the indexes. Every now and then (depending on the configuration parameters in <tt>works
pace.xml</tt>) indexes are merged and nodes marked as deleted in the index are removed. This happens similar to how Lucene merges its internal segments.</p></div>
-<div class="section">
-<h2>Utilities<a name="Utilities"></a></h2>
-<p>The class <tt>org.apache.jackrabbit.core.query.QueryParser</tt> allows you to translate a query statement into an Abstract Query Tree and vice versa. It’s a nice tool to see how a query in XPath looks like in SQL or the other way round.</p>
-<p>The class <tt>org.apache.jackrabbit.core.query.PropertyTypeRegistry</tt> provides fast access to the type information based on property names. The Jackrabbit <tt>QueryHandler</tt> implementation uses this class to coerce value literals into other value types.</p></div>
- </div>
- </div>
- </div>
-
+</ul><section>
+<h2><a name="XPath_Parser"></a>XPath Parser</h2>
+<p>The XPath query parser is based on the W3C XQuery grammar definition which is not yet final but can be downloaded as draft here. The reason why Jackrabbit uses the XQuery grammar, rather than the XPath grammar, is, that JSR-170 specifies an ‘order by’ clause for the XPath query syntax. This ‘order by’ clause is borrowed from the XQuery FLWOR expression syntax. Before parsing the XPath query in Jackrabbit, the statement is surrounded with dummy code, to form a valid XQuery FLWOR expression and is then passed to the XQuery parser. The actual parser is a class generated by JavaCC, which uses the grammar that can be found in src/grammar/xpath. The parsed XPath statement is then translated into an Abstract Query Tree. See class: <code>org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder</code></p></section><section>
+<h2><a name="SQL_Parser"></a>SQL Parser</h2>
+<p>The SQL query parser is generated from a grammar definition located in src/grammar/sql. After parsing, the Abstract Syntax Tree is translated into the Jackrabbit internal Abstract Query Tree. See class: <code>org.apache.jackrabbit.core.query.sql.JCRSQLQueryBuilder</code></p></section><section>
+<h2><a name="Abstract_Query_Tree"></a>Abstract Query Tree</h2>
+<p>The Abstract Query Tree (AQT) is the common query description format that allows Jackrabbit to implement a query engine which is (to a certain extent) independent of the query syntax used (XPath or SQL). The AQT consists of the classes that are derived from: <code>org.apache.jackrabbit.core.query.QueryNode</code></p>
+<p>Please note that the AQT is Jackrabbit internal and not exposed to a client using the JCR API!</p></section><section>
+<h2><a name="Query_Engine"></a>Query Engine</h2>
+<p>Now this is where the meat is. The actual implementation of the query engine is configurable. One needs to implement the interface: <code>org.apache.jackrabbit.core.query.QueryHandler</code>. Jackrabbit comes with an implementation that uses a Lucene index: <code>org.apache.jackrabbit.core.query.lucene.SearchIndex</code> This index is independent of the persistence manager in use. However it is also possible to write a QueryHandler implementation which is aware of the underlying storage (e.g. a database) and executes the query on the ‘native’ storage.</p>
+<p>The class <code>org.apache.core.query.lucene.LuceneQueryBuilder</code> translates the Abstract Query Tree into a query that can be executed against the Lucene index. Jackrabbit implements a couple of extensions to the standard Lucene classes, primarily to improve performance in an environment with incremental indexing like Jackrabbit. Instead of a single index, Jackrabbit uses generations of indexes to circumvent costly <code>IndexReader</code> / <code>IndexWriter</code> creation. See: <code>org.apache.jackrabbit.core.query.lucene.MultiIndex</code>. The most recent generation of the search index is held completely in memory. See: <code>org.apache.jackrabbit.core.query.lucene.VolatileIndex</code>. It is comparable with the garbage collection in Java, where generations are used to move living objects from the young into the old generation over time. Queries are then executed on a <code>MultiReader</code> that spans all the indexes. Every now and then (depending on the configuration
parameters in <code>workspace.xml</code>) indexes are merged and nodes marked as deleted in the index are removed. This happens similar to how Lucene merges its internal segments.</p></section><section>
+<h2><a name="Utilities"></a>Utilities</h2>
+<p>The class <code>org.apache.jackrabbit.core.query.QueryParser</code> allows you to translate a query statement into an Abstract Query Tree and vice versa. It’s a nice tool to see how a query in XPath looks like in SQL or the other way round.</p>
+<p>The class <code>org.apache.jackrabbit.core.query.PropertyTypeRegistry</code> provides fast access to the type information based on property names. The Jackrabbit <code>QueryHandler</code> implementation uses this class to coerce value literals into other value types.</p></section>
+ </main>
+ </div>
+ </div>
<hr/>
-
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2020
- <a href="http://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
-
- </p>
+ <div class="container-fluid">
+ <div class="row-fluid">
+<p>© 2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a> | <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a>
+</p>
</div>
-
-
-
-
-
-
<div id="ohloh" class="pull-right">
- <script type="text/javascript" src="http://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
+ <script src="https://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
</div>
</div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file
Modified: jackrabbit/site/live/jcr/shared-j2ee-resource-howto.html
URL: http://svn.apache.org/viewvc/jackrabbit/site/live/jcr/shared-j2ee-resource-howto.html?rev=1900838&r1=1900837&r2=1900838&view=diff
==============================================================================
--- jackrabbit/site/live/jcr/shared-j2ee-resource-howto.html (original)
+++ jackrabbit/site/live/jcr/shared-j2ee-resource-howto.html Thu May 12 13:18:21 2022
@@ -1,452 +1,176 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at 2020-07-08
- | Rendered using Apache Maven Fluido Skin 1.3.1
+ | Generated by Apache Maven Doxia Site Renderer 1.9.2 from src\site\markdown/shared-j2ee-resource-howto.md at 2022-05-12
+ | Rendered using Apache Maven Fluido Skin 1.9
-->
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20200708" />
- <meta http-equiv="Content-Language" content="en" />
- <title>Apache Jackrabbit - Shared J2EE Resource HOWTO</title>
- <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.1.min.css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="generator" content="Apache Maven Doxia Site Renderer 1.9.2" />
+ <title>Apache Jackrabbit – Shared J2EE Resource HOWTO</title>
+ <link rel="stylesheet" href="./css/apache-maven-fluido-1.9.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
-
-
- <script type="text/javascript" src="./js/apache-maven-fluido-1.3.1.min.js"></script>
-
-
- </head>
- <body class="topBarEnabled">
-
-
-
-
-
-
- <a href="http://github.com/apache/jackrabbit">
+ <script src="./js/apache-maven-fluido-1.9.min.js"></script>
+<!-- Matomo -->
+<script>
+ var _paq = window._paq = window._paq || [];
+ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ /* We explicitly disable cookie tracking to avoid privacy issues */
+ _paq.push(['disableCookies']);
+ _paq.push(['trackPageView']);
+ _paq.push(['enableLinkTracking']);
+ (function() {
+ var u="https://matomo.privacy.apache.org/";
+ _paq.push(['setTrackerUrl', u+'matomo.php']);
+ _paq.push(['setSiteId', '4']);
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+ g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+ })();
+</script>
+<!-- End Matomo Code -->
+ </head>
+ <body class="topBarEnabled">
+ <a href="https://github.com/apache/jackrabbit">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub">
</a>
-
-
-
-
-
- <div id="topbar" class="navbar navbar-fixed-top ">
+ <header id="topbar" class="navbar navbar-fixed-top ">
<div class="navbar-inner">
- <div class="container-fluid">
+ <div class="container-fluid">
<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
-
- <a class="brand" href="index.html" title="Apache Jackrabbit">
-
-
- <img src="images/logos/jlogo.gif" alt="Apache Jackrabbit" />
-
- </a>
-
- <ul class="nav">
- <li class="dropdown">
+<a class="brand" href="index.html" title="Apache Jackrabbit"><img src="images/logos/jlogo.gif" alt="Apache Jackrabbit" />
+</a>
+ <ul class="nav">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Jackrabbit <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="index.html" title="Welcome">Welcome</a>
-</li>
-
- <li> <a href="downloads.html" title="Downloads">Downloads</a>
-</li>
-
- <li> <a href="articles.html" title="Articles">Articles</a>
-</li>
-
- <li> <a href="frequently-asked-questions.html" title="FAQ">FAQ</a>
-</li>
-
- <li> <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a>
-</li>
-
- <li> <a href="jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a>
-</li>
- </ul>
+ <li><a href="index.html" title="Welcome">Welcome</a></li>
+ <li><a href="downloads.html" title="Downloads">Downloads</a></li>
+ <li><a href="articles.html" title="Articles">Articles</a></li>
+ <li><a href="frequently-asked-questions.html" title="FAQ">FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" title="Archived Jackrabbit Wiki">Archived Jackrabbit Wiki</a></li>
+ <li><a href="jackrabbit-history.html" title="Jackrabbit History">Jackrabbit History</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a>
-</li>
-
- <li> <a href="standalone-server.html" title="Standalone Server">Standalone Server</a>
-</li>
-
- <li> <a href="jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a>
-</li>
-
- <li> <a href="first-hops.html" title="First Hops">First Hops</a>
-</li>
-
- <li> <a href="jcr-api.html" title="JCR & API">JCR & API</a>
-</li>
-
- <li> <a href="jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a>
-</li>
-
- <li> <a href="deployment-models.html" title="Deployment Models">Deployment Models</a>
-</li>
-
- <li> <a href="jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a>
-</li>
-
- <li> <a href="node-types.html" title="Node Types">Node Types</a>
-</li>
-
- <li> <a href="object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a>
-</li>
- </ul>
+ <li><a href="getting-started-with-apache-jackrabbit.html" title="Getting Started">Getting Started</a></li>
+ <li><a href="standalone-server.html" title="Standalone Server">Standalone Server</a></li>
+ <li><a href="jackrabbit-components.html" title="Jackrabbit Components">Jackrabbit Components</a></li>
+ <li><a href="first-hops.html" title="First Hops">First Hops</a></li>
+ <li><a href="jcr-api.html" title="JCR & API">JCR & API</a></li>
+ <li><a href="jackrabbit-architecture.html" title="Jackrabbit Architecture">Jackrabbit Architecture</a></li>
+ <li><a href="deployment-models.html" title="Deployment Models">Deployment Models</a></li>
+ <li><a href="jackrabbit-configuration.html" title="Jackrabbit Configuration">Jackrabbit Configuration</a></li>
+ <li><a href="node-types.html" title="Node Types">Node Types</a></li>
+ <li><a href="object-content-mapping.html" title="Object Content Mapping">Object Content Mapping</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a>
-</li>
-
- <li> <a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a>
-</li>
-
- <li> <a href="building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a>
-</li>
-
- <li> <a href="mailing-lists.html" title="Mailing Lists">Mailing Lists</a>
-</li>
-
- <li> <a href="issue-tracker.html" title="Issue Tracker">Issue Tracker</a>
-</li>
-
- <li> <a href="source-repository.html" title="Source Repository">Source Repository</a>
-</li>
-
- <li> <a href="continuous-integration.html" title="Continuous Integration">Continuous Integration</a>
-</li>
-
- <li> <a href="website.html" title="Website">Website</a>
-</li>
-
- <li> <a href="creating-releases.html" title="Creating Releases">Creating Releases</a>
-</li>
-
- <li> <a href="supporting-software-attribution.html" title="Attribution">Attribution</a>
-</li>
-
- <li> <a href="privacy-policy.html" title="Privacy">Privacy</a>
-</li>
- </ul>
+ <li><a href="jackrabbit-team.html" title="Jackrabbit Team">Jackrabbit Team</a></li>
+ <li><a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap">Jackrabbit Roadmap</a></li>
+ <li><a href="building-jackrabbit.html" title="Building Jackrabbit">Building Jackrabbit</a></li>
+ <li><a href="mailing-lists.html" title="Mailing Lists">Mailing Lists</a></li>
+ <li><a href="issue-tracker.html" title="Issue Tracker">Issue Tracker</a></li>
+ <li><a href="source-repository.html" title="Source Repository">Source Repository</a></li>
+ <li><a href="continuous-integration.html" title="Continuous Integration">Continuous Integration</a></li>
+ <li><a href="website.html" title="Website">Website</a></li>
+ <li><a href="creating-releases.html" title="Creating Releases">Creating Releases</a></li>
+ <li><a href="supporting-software-attribution.html" title="Attribution">Attribution</a></li>
+ </ul>
</li>
- <li class="dropdown">
+ <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Apache Software Foundation <b class="caret"></b></a>
<ul class="dropdown-menu">
-
- <li> <a href="http://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a>
-</li>
-
- <li> <a href="http://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a>
-</li>
- </ul>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" title="Introduction">Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" title="Sponsorship">Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" title="Current Sponsors">Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" title="Privacy">Privacy</a></li>
+ </ul>
</li>
- </ul>
-
-
-
-
- </div>
-
+ </ul>
</div>
</div>
- </div>
-
- <div class="container-fluid">
- <div id="banner">
- <div class="pull-left">
- <div id="bannerLeft">
- <h2>Apache Jackrabbit Site</h2>
- </div>
- </div>
- <div class="pull-right"> </div>
- <div class="clear"><hr/></div>
- </div>
-
- <div id="breadcrumbs">
- <ul class="breadcrumb">
-
-
- <li id="publishDate">Last Published: 2020-07-08
- </li>
-
-
-
-
- </ul>
- </div>
+ </header>
+ <div class="container-fluid">
+ <header>
+ <div id="banner">
+ <div class="pull-left"><div id="bannerLeft"><h2>Apache Jackrabbit Site</h2>
+</div>
+</div>
+ <div class="pull-right"></div>
+ <div class="clear"><hr/></div>
+ </div>
-
+ <div id="breadcrumbs">
+ <ul class="breadcrumb">
+ <li id="publishDate">Last Published: 2022-05-12</li>
+ </ul>
+ </div>
+ </header>
<div class="row-fluid">
- <div id="leftColumn" class="span3">
+ <header id="leftColumn" class="span2">
+ <nav class="well sidebar-nav">
+ <ul class="nav nav-list">
+ <li class="nav-header">Apache Jackrabbit</li>
+ <li><a href="index.html" title="Welcome"><span class="none"></span>Welcome</a></li>
+ <li><a href="downloads.html" title="Downloads"><span class="none"></span>Downloads</a></li>
+ <li><a href="articles.html" title="Articles"><span class="none"></span>Articles</a></li>
+ <li><a href="frequently-asked-questions.html" title="FAQ"><span class="none"></span>FAQ</a></li>
+ <li><a href="https://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki"><span class="none"></span>Archived Jackrabbit Wiki</a></li>
+ <li><a href="jackrabbit-history.html" title="Jackrabbit History"><span class="none"></span>Jackrabbit History</a></li>
+ <li class="nav-header">Documentation</li>
+ <li><a href="getting-started-with-apache-jackrabbit.html" title="Getting Started"><span class="none"></span>Getting Started</a></li>
+ <li><a href="standalone-server.html" title="Standalone Server"><span class="none"></span>Standalone Server</a></li>
+ <li><a href="jackrabbit-components.html" title="Jackrabbit Components"><span class="none"></span>Jackrabbit Components</a></li>
+ <li><a href="first-hops.html" title="First Hops"><span class="none"></span>First Hops</a></li>
+ <li><a href="jcr-api.html" title="JCR & API"><span class="none"></span>JCR & API</a></li>
+ <li><a href="jackrabbit-architecture.html" title="Jackrabbit Architecture"><span class="none"></span>Jackrabbit Architecture</a></li>
+ <li><a href="deployment-models.html" title="Deployment Models"><span class="none"></span>Deployment Models</a></li>
+ <li><a href="jackrabbit-configuration.html" title="Jackrabbit Configuration"><span class="none"></span>Jackrabbit Configuration</a></li>
+ <li><a href="node-types.html" title="Node Types"><span class="none"></span>Node Types</a></li>
+ <li><a href="object-content-mapping.html" title="Object Content Mapping"><span class="none"></span>Object Content Mapping</a></li>
+ <li class="nav-header">Development</li>
+ <li><a href="jackrabbit-team.html" title="Jackrabbit Team"><span class="none"></span>Jackrabbit Team</a></li>
+ <li><a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap"><span class="none"></span>Jackrabbit Roadmap</a></li>
+ <li><a href="building-jackrabbit.html" title="Building Jackrabbit"><span class="none"></span>Building Jackrabbit</a></li>
+ <li><a href="mailing-lists.html" title="Mailing Lists"><span class="none"></span>Mailing Lists</a></li>
+ <li><a href="issue-tracker.html" title="Issue Tracker"><span class="none"></span>Issue Tracker</a></li>
+ <li><a href="source-repository.html" title="Source Repository"><span class="none"></span>Source Repository</a></li>
+ <li><a href="continuous-integration.html" title="Continuous Integration"><span class="none"></span>Continuous Integration</a></li>
+ <li><a href="website.html" title="Website"><span class="none"></span>Website</a></li>
+ <li><a href="creating-releases.html" title="Creating Releases"><span class="none"></span>Creating Releases</a></li>
+ <li><a href="supporting-software-attribution.html" title="Attribution"><span class="none"></span>Attribution</a></li>
+ <li class="nav-header">Apache Software Foundation</li>
+ <li><a href="https://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction"><span class="none"></span>Introduction</a></li>
+ <li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship"><span class="none"></span>Sponsorship</a></li>
+ <li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors"><span class="none"></span>Current Sponsors</a></li>
+ <li><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="externalLink" title="Privacy"><span class="none"></span>Privacy</a></li>
+ </ul>
+ </nav>
<div class="well sidebar-nav">
-
-
- <ul class="nav nav-list">
- <li class="nav-header">Apache Jackrabbit</li>
-
- <li>
-
- <a href="index.html" title="Welcome">
- <i class="none"></i>
- Welcome</a>
- </li>
-
- <li>
-
- <a href="downloads.html" title="Downloads">
- <i class="none"></i>
- Downloads</a>
- </li>
-
- <li>
-
- <a href="articles.html" title="Articles">
- <i class="none"></i>
- Articles</a>
- </li>
-
- <li>
-
- <a href="frequently-asked-questions.html" title="FAQ">
- <i class="none"></i>
- FAQ</a>
- </li>
-
- <li>
-
- <a href="http://jackrabbit.apache.org/archive/wiki/JCR/Home_70731.html" class="externalLink" title="Archived Jackrabbit Wiki">
- <i class="none"></i>
- Archived Jackrabbit Wiki</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-history.html" title="Jackrabbit History">
- <i class="none"></i>
- Jackrabbit History</a>
- </li>
- <li class="nav-header">Documentation</li>
-
- <li>
-
- <a href="getting-started-with-apache-jackrabbit.html" title="Getting Started">
- <i class="none"></i>
- Getting Started</a>
- </li>
-
- <li>
-
- <a href="standalone-server.html" title="Standalone Server">
- <i class="none"></i>
- Standalone Server</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-components.html" title="Jackrabbit Components">
- <i class="none"></i>
- Jackrabbit Components</a>
- </li>
-
- <li>
-
- <a href="first-hops.html" title="First Hops">
- <i class="none"></i>
- First Hops</a>
- </li>
-
- <li>
-
- <a href="jcr-api.html" title="JCR & API">
- <i class="none"></i>
- JCR & API</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-architecture.html" title="Jackrabbit Architecture">
- <i class="none"></i>
- Jackrabbit Architecture</a>
- </li>
-
- <li>
-
- <a href="deployment-models.html" title="Deployment Models">
- <i class="none"></i>
- Deployment Models</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-configuration.html" title="Jackrabbit Configuration">
- <i class="none"></i>
- Jackrabbit Configuration</a>
- </li>
-
- <li>
-
- <a href="node-types.html" title="Node Types">
- <i class="none"></i>
- Node Types</a>
- </li>
-
- <li>
-
- <a href="object-content-mapping.html" title="Object Content Mapping">
- <i class="none"></i>
- Object Content Mapping</a>
- </li>
- <li class="nav-header">Development</li>
-
- <li>
-
- <a href="jackrabbit-team.html" title="Jackrabbit Team">
- <i class="none"></i>
- Jackrabbit Team</a>
- </li>
-
- <li>
-
- <a href="jackrabbit-roadmap.html" title="Jackrabbit Roadmap">
- <i class="none"></i>
- Jackrabbit Roadmap</a>
- </li>
-
- <li>
-
- <a href="building-jackrabbit.html" title="Building Jackrabbit">
- <i class="none"></i>
- Building Jackrabbit</a>
- </li>
-
- <li>
-
- <a href="mailing-lists.html" title="Mailing Lists">
- <i class="none"></i>
- Mailing Lists</a>
- </li>
-
- <li>
-
- <a href="issue-tracker.html" title="Issue Tracker">
- <i class="none"></i>
- Issue Tracker</a>
- </li>
-
- <li>
-
- <a href="source-repository.html" title="Source Repository">
- <i class="none"></i>
- Source Repository</a>
- </li>
-
- <li>
-
- <a href="continuous-integration.html" title="Continuous Integration">
- <i class="none"></i>
- Continuous Integration</a>
- </li>
-
- <li>
-
- <a href="website.html" title="Website">
- <i class="none"></i>
- Website</a>
- </li>
-
- <li>
-
- <a href="creating-releases.html" title="Creating Releases">
- <i class="none"></i>
- Creating Releases</a>
- </li>
-
- <li>
-
- <a href="supporting-software-attribution.html" title="Attribution">
- <i class="none"></i>
- Attribution</a>
- </li>
-
- <li>
-
- <a href="privacy-policy.html" title="Privacy">
- <i class="none"></i>
- Privacy</a>
- </li>
- <li class="nav-header">Apache Software Foundation</li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/how-it-works.html" class="externalLink" title="Introduction">
- <i class="none"></i>
- Introduction</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">
- <i class="none"></i>
- Sponsorship</a>
- </li>
-
- <li>
-
- <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Current Sponsors">
- <i class="none"></i>
- Current Sponsors</a>
- </li>
- </ul>
-
-
-
- <hr />
-
- <div id="poweredBy">
-
- <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-
-
- <div class="g-plusone" data-href="http://www.apache.org/jackrabbit-site/" data-size="tall" ></div>
-
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <div class="clear"></div>
- <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
- <img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
- </a>
- </div>
+ <hr />
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
+ </div>
</div>
- </div>
-
-
- <div id="bodyColumn" class="span9" >
-
- <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+ </header>
+ <main id="bodyColumn" class="span10" >
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
@@ -459,29 +183,26 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
- limitations under the License. --><h1>Shared J2EE Resource HOWTO</h1>
+ limitations under the License.
+-->
+<h1>Shared J2EE Resource HOWTO</h1>
<p>This document describes how to use a Jackrabbit content repository in the deployment model 2: Shared J2EE Resource. In this deployment model, a central content repository resource managed by an application server is used by multiple different applications. See the <a href="jcr-client-application-howto.html">JCR client application HOWTO</a> for instructions on how to use the configured content repository.</p>
-<p>This how-to contains instructions for Tomcat versions 4.x and 5.x. It should be easy to modify the instructions for other container environments.</p>
-<div class="section">
-<h2>Tomcat instructions<a name="Tomcat_instructions"></a></h2>
+<p>This how-to contains instructions for Tomcat versions 4.x and 5.x. It should be easy to modify the instructions for other container environments.</p><section>
+<h2><a name="Tomcat_instructions"></a>Tomcat instructions</h2>
<p>Follow the steps below to setup a model 2 Jackrabbit deployment for your Tomcat 4.x or 5.x installation. Example code for both versions of Tomcat is included after this overview.</p>
-
<ol style="list-style-type: decimal">
-
-<li>Place the Jackrabbit jar file and all the dependencies (including the JCR API jar file) under <tt>$CATALINA_HOME/common/lib</tt>.</li>
-
+
+<li>Place the Jackrabbit jar file and all the dependencies (including the JCR API jar file) under <code>$CATALINA_HOME/common/lib</code>.</li>
<li>Register the bindable repository factory as a global resource.</li>
-
<li>Link the global resource to a context scoped JNDI address.</li>
-</ol>
-<div class="section">
-<h3>Step 2 - Resource configuration<a name="Step_2_-_Resource_configuration"></a></h3>
+</ol><section>
+<h3><a name="Step_2_-_Resource_configuration"></a>Step 2 - Resource configuration</h3>
<p>Note: This step is essentially the same as step 2 in the Model 1 HOWTO. The only differences are in the (arbitrary) naming of the resource and placing of the configuration elements. The difference in the end result is that the configured repository is bound to the global JNDI context instead of a local one. In Tomcat 4.x and 5.0, add the following snippet in server.xml under the GlobalNamingResources element.</p>
<div class="source">
-<pre><Resource name="jcr/globalRepository"
- auth="Container"
- type="javax.jcr.Repository"/>
+<div class="source"><pre class="prettyprint linenums"><Resource name="jcr/globalRepository"
+ auth="Container"
+ type="javax.jcr.Repository"/>
<ResourceParams name="jcr/globalRepository">
<parameter>
@@ -497,11 +218,12 @@
<value>[full path to the repository home folder]</value>
</parameter>
</ResourceParams>
-</pre></div>
+</pre></div></div>
+
<p>In Tomcat 5.5, add the following snippet in server.xml under the GlobalNamingResources element.</p>
<div class="source">
-<pre><Resource name="jcr/globalRepository"
+<div class="source"><pre class="prettyprint linenums"><Resource name="jcr/globalRepository"
auth="Container"
type="javax.jcr.Repository"
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
@@ -509,41 +231,31 @@
repHomeDir="[full path to the repository home folder]"
/>
</pre></div></div>
-<div class="section">
-<h3>Step 3 - Resource link<a name="Step_3_-_Resource_link"></a></h3>
-<p>In Tomcat versions 4.x and 5.0, add the following snippet in server.xml under the Context element of your web application. In Tomcat version 5.5, add the snippet in your application’s context.xml or <tt>$CATALINA_HOME/conf/_enginename_/_hostname_/_webappname_.xml</tt>. If you prefer central configuration, you can add the configuration to <tt>$CATALINA_HOME/conf/context.xml</tt>.</p>
+</section><section>
+<h3><a name="Step_3_-_Resource_link"></a>Step 3 - Resource link</h3>
+<p>In Tomcat versions 4.x and 5.0, add the following snippet in server.xml under the Context element of your web application. In Tomcat version 5.5, add the snippet in your application’s context.xml or <code>$CATALINA_HOME/conf/_enginename_/_hostname_/_webappname_.xml</code>. If you prefer central configuration, you can add the configuration to <code>$CATALINA_HOME/conf/context.xml</code>.</p>
<div class="source">
-<pre><ResourceLink
+<div class="source"><pre class="prettyprint linenums"><ResourceLink
name="jcr/repository"
global="jcr/globalRepository"
type="javax.jcr.Repository"/>
-</pre></div></div></div>
- </div>
- </div>
- </div>
-
+</pre></div></div></section></section>
+ </main>
+ </div>
+ </div>
<hr/>
-
<footer>
- <div class="container-fluid">
- <div class="row-fluid">
- <p >Copyright © 2020
- <a href="http://www.apache.org/">The Apache Software Foundation</a>.
- All rights reserved.
-
- </p>
+ <div class="container-fluid">
+ <div class="row-fluid">
+<p>© 2022
+<a href="https://www.apache.org/">The Apache Software Foundation</a> | <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a>
+</p>
</div>
-
-
-
-
-
-
<div id="ohloh" class="pull-right">
- <script type="text/javascript" src="http://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
+ <script src="https://www.ohloh.net/p/jackrabbit/widgets/project_users_logo.js"></script>
</div>
</div>
</footer>
- </body>
+ </body>
</html>
\ No newline at end of file