Jackrabbit介绍

The Apache Jackrabbit™ content repository is a fully conforming implementation of the Content Repository for Java Technology API.

Jackrabbit是完全遵照JAVA API实现的一个内容仓库。

A content repository is a hierarchical content store with support for structured and unstructured content, full text search, versioning, transactions, observation, and more。

是一个分级内容仓库,可以存放结构化和非结构化内容,全文本搜索,版本,汇报,观察报告等等。

To get started with Jackrabbit you should first become familiar with the JCR API. Download the JSR 170 specification, browse the API documentation, check our introduction to JCR levels, or read some of the JCR articles to understand the content repository model that Jackrabbit implements. You can also take a look at the various JCR and Jackrabbit applications to get an idea of what to do with a content repository.

http://jackrabbit.apache.org/getting-started-with-apache-jackrabbit.html  //官方网站

 

What Is a Persistence Manager (PM)?

PM是Jackrabbit内部的一个组件,处理内容或属性的持久化存储。

Consistency / Atomicy

如果数据库支持原子性则数据库持久化是原子性的。

当前文件系统是不支持原子性的。

 

What Combination of FS and PM is the Best Choice?

取决于你的优先级。如果你想存储数据在RDBMS中,用BundleDbPersistenceManager整合LocalFileSystem或DbFileSystem。如果你想存储文件更容易理解,你需要使用XMLPersistenceManager配合LocalFileSystem。

Available Implementations

Bundle Database PM

  • Status: mature (the default persistence manager)
  • Depending on the database, one of the following:
    • org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager (Apache Derby; Java)

    • org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager (H2 Database Engine; Java)

    • org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager (MySQL)

    • org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager (PostgreSQL)

    • org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager (MS SQL Server)

    • org.apache.jackrabbit.core.persistence.bundle.OraclePersistenceManager (Oracle 10 or newer)

    • org.apache.jackrabbit.core.persistence.bundle.Oracle9PersistenceManager (Oracle 9)

    • org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager (generic database)

  • Atomic; JDBC based; zero-deployment; fast
  • Auto-reconnect to the database is supported.
  • To use a JNDI data, see UsingJNDIDataSource.

  • The tables are automatically created. To create them manually, see ManuallyCreatingDatabaseTables.

  • BundleDbPersistenceManager

Bundle File-System PM

  • Status: mature
  • If the JVM process is killed the repository might turn inconsistent
  • Not meant to be used in production environments (except for read-only uses)
  • org.apache.jackrabbit.core.persistence.bundle.BundleFsPersistenceManager

  • Very fast if used with .DataStore or BLOBStore

  • BundleFsPersistenceManager

In-Memory PM

  • Status: mature
  • All data is lost as soon as the repository is closed
  • org.apache.jackrabbit.core.persistence.mem.InMemPersistenceManager

  • For testing and small (read-only) workspaces
  • Keeps all content in memory
  • A custom binary serializer is optionally used to load and store the persistent state during initialization and shutdown of the persistence manager.
  • Very fast
  • InMemPersistenceManager

Simple Database PM

  • Status: mature
  • Subclasses of org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager

  • JDBC based; zero-deployment: schema is automatically created
  • Atomic
  • Fast
  • SimpleDbPersistenceManager

ObjectPersistenceManager

  • Status: obsolete, mature
  • If the JVM process is killed the repository might turn inconsistent
  • Not meant to be used in production environments
  • Persists data in an abstract FileSystem using a simple binary serialization format

XMLPersistenceManager

  • Status: obsolete, mature
  • If the JVM process is killed the repository might turn inconsistent
  • Persists data in an abstract FileSystem using XML serialization format

 

ORMPersistenceManager

  • Status: obsolete, experimental & unfinished, still being maintained?

  • Referential integrity is possible, but not implemented
  • Not so easy to configure.

LocalFileSystem:

  • Status: mature
  • Slow on window boxes

 

MemoryFileSystem:

  • Status: mature
  • All data is lost as soon as the repository is closed
  • For testing and small (read-only) workspaces
  • Keeps all content in memory
  • Very fast

DbFileSystem:

  • Status: mature
  • Atomic
  • Meant to be used in combination with a Database Persistence Manager as repository & workspace file system

 

 

 

转载于:https://www.cnblogs.com/hzcxy/archive/2013/04/18/3028676.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提示错误[ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: commons-httpclient:commons-httpclient:jar:3.1 (absent): Could not transfer artifact commons-httpclient:commons-httpclient:jar:3.1 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: connect timed out @ @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.drools:droolsjbpm-integration:7.74.0-SNAPSHOT (D:\droolsjbpm-integration-main\droolsjbpm-integration-main\pom.xml) has 1 error [ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: commons-httpclient:commons-httpclient:jar:3.1 (absent): Could not transfer artifact commons-httpclient:commons-httpclient:jar:3.1 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: connect timed out -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
最新发布
06-09

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值