Apache Jackrabbit

active

by Apache Software Foundation · since 2006 · also known as Jackrabbit, Jackrabbit Oak, Apache Jackrabbit Oak, JCR reference implementation

Apache's Java Content Repository: a hierarchical, versioned node store with search, behind many Java CMSs.

hierarchicaldocumentdatabase engineopen source (permissive)mature

Overview

Apache Jackrabbit implements the Java Content Repository (JCR) API: content lives in a tree of typed nodes and properties, with versioning, locking, access control, observation events and full-text plus JCR-SQL2/XPath queries. Day Software started it in 2004 as the JSR-170 reference implementation and it graduated at Apache in 2006. Jackrabbit 2.x persists through pluggable persistence managers, while the newer Jackrabbit Oak rewrite (2.8.0, Java 17+) stores trees in its Segment Tar format or in MongoDB/relational backends for clustering and scales much further. It is the storage layer of Apache Sling-based content platforms and DAM/CMS products; reach for it when you need a content repository with JCR semantics, not a general application database.

Strengths & trade-offs

Strengths

  • +Standard JCR API with hierarchical nodes, node types and mixins
  • +Built-in versioning, locking, observation events and fine-grained ACLs
  • +Lucene-backed full-text and JCR-SQL2/XPath queries over content
  • +Oak scales repositories to hundreds of millions of nodes with MongoDB or RDB backends
  • +Long-running, actively released Apache project with permissive license

Trade-offs

  • −JCR is Java-centric and niche; few developers know it
  • −Query performance depends on hand-defined Oak indexes
  • −Operational tuning (compaction, index rebuilds, cluster sync) is non-trivial
  • −Two code lines (Jackrabbit 2 and Oak) with different storage and behaviour

Great for

  • +Storage layer for Java CMS, DAM and portal products
  • +Versioned document and asset repositories with access control
  • +Apache Sling applications

Think twice for

  • −Relational or transactional business data
  • −Non-JVM stacks
  • −High-throughput key-value or analytics workloads

Capabilities

Native or official first-party support · 7 of 25 tracked

✓Transactions
✓Secondary indexes
✓Full-text search
✓Change data capture
✓Durable persistence
✓Role-based access
✓Online schema changes
–Joins
–Vector search
–Geospatial
–JSON
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Time travel
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Medium · ≤ 10 TB
Horizontal scaling
Addon
Multi-region
No
Transactions
Limited ACID
Consistency
Strong, Eventual
Schema
Flexible
Architecture
Embedded, Client server, Shared storage
Query languages
JCR-SQL2, XPath (JCR), JCR-JQOM

Jackrabbit 2 clusters over a shared database; Oak's DocumentNodeStore clusters on MongoDB or an RDBMS, Segment Tar is single-instance.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsJCR 2.0 (JSR-283) Java API, WebDAV
client languagesJava

Alternatives to Apache Jackrabbit

Compare all→
ModeShapeHierarchical2.3

Red Hat's open-source JCR 2.0 hierarchical content repository for Java; no release since 2017.

jackrabbit vs modeshape →
MongoDBDocument80.5

The default document database: flexible BSON documents, rich queries and built-in sharding.

jackrabbit vs mongodb →
PostgreSQLRelational93.2

The extensible, standards-first open-source relational database.

jackrabbit vs postgresql →
eXist-dbXML19.3

Open-source native XML database and XQuery application platform for documents and digital editions.

jackrabbit vs exist-db →
MarkLogicDocument21.6

Enterprise multi-model database for XML, JSON and RDF with built-in search and semantic RAG.

jackrabbit vs marklogic →
BaseXXML17.5

Lightweight, fast native XML database and XQuery 3.1/4.0 processor with a GUI.

jackrabbit vs basex →

Apache Jackrabbit FAQ

What is Apache Jackrabbit?

Apache Jackrabbit is a hierarchical database by Apache Software Foundation, first released in 2006. Apache Jackrabbit implements the Java Content Repository (JCR) API: content lives in a tree of typed nodes and properties, with versioning, locking, access control, observation events and full-text plus JCR-SQL2/XPath queries. Day Software started it in 2004 as the JSR-170 reference implementation and it graduated at Apache in 2006. Jackrabbit 2.x persists through pluggable persistence managers, while the newer Jackrabbit Oak rewrite (2.8.0, Java 17+) stores trees in its Segment Tar format or in MongoDB/relational backends for clustering and scales much further. It is the storage layer of Apache Sling-based content platforms and DAM/CMS products; reach for it when you need a content repository with JCR semantics, not a general application database.

Is Apache Jackrabbit open source?

Yes. Apache Jackrabbit is open source. License: Apache License 2.0.

Does Apache Jackrabbit support ACID transactions?

Partly. Apache Jackrabbit offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong, eventual consistency.

Does Apache Jackrabbit scale horizontally?

Apache Jackrabbit scales horizontally through an official extension, proxy or edition rather than in the core engine. It is comfortable at medium scale (≤ 10 TB).

How can I run Apache Jackrabbit?

You can self-host it and embed it in your application.

What is Apache Jackrabbit best for?

Apache Jackrabbit is a strong fit for storage layer for Java CMS, DAM and portal products; versioned document and asset repositories with access control; and apache Sling applications. Think twice for relational or transactional business data.

What are the best alternatives to Apache Jackrabbit?

Common alternatives to Apache Jackrabbit include ModeShape, MongoDB, PostgreSQL, eXist-db and MarkLogic. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Apache Jackrabbit?

Apache Jackrabbit ranks #252 of 844 databases on the WhichDB Score (13.4/100), and #2 among hierarchical databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.