You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Edgar Poce (JIRA)" <ji...@apache.org> on 2005/03/15 21:36:20 UTC
[jira] Created: (JCR-65) ChainedPersistenceManager
ChainedPersistenceManager
-------------------------
Key: JCR-65
URL: http://issues.apache.org/jira/browse/JCR-65
Project: Jackrabbit
Type: New Feature
Reporter: Edgar Poce
Priority: Minor
Attachments: 05-03-15-chained-persistence.zip, uml-class.gif
Overview
The package contains the classes that provide chaining of Persistence Managers support through an implementation of the chain of responsibility pattern.
The ChainedPersistenceManager class is the chain's external controller.
The current implementation uses composition instead of inheritance. The concrete handlers (PersistenceManager) are private members instead of subclasses.
For reading commands no evaluation is performed, the ChainedPersistenceManager returns the response of the first handler that finds the object.
For writing commands, the PersistenceManagerHandler class delegates conditionally the persistence calls to the concrete implementation based on a custom evaluation.
Custom PersistenceManagerEvaluator implementations can be set through configuration.
Custom listeners can be added to the ChainedPersistenceManager class. It allows to perform custom operations on "after init" and "before close" events.
Warning
This package should be used only in a couple of cases and none of them is the best practice.
* Sharing jcr data with others systems through a custom PersistenceManager
* Integrating a legacy system
Reliability, integrity and performance of the PersistenceManager are *crucial* to the overall stability & performance of the repository. if e.g. the data that a PersistenceManager is based upon is allowed to change through external means the integrity of the repository would be at risk (think of referential integrity/ node references e.g.).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Assigned: (JCR-65) ChainedPersistenceManager
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-65?page=all ]
Jukka Zitting reassigned JCR-65:
--------------------------------
Assign To: Jukka Zitting
> ChainedPersistenceManager
> -------------------------
>
> Key: JCR-65
> URL: http://issues.apache.org/jira/browse/JCR-65
> Project: Jackrabbit
> Type: New Feature
> Reporter: Edgar Poce
> Assignee: Jukka Zitting
> Priority: Minor
> Attachments: 05-03-15-chained-persistence.zip, uml-class.gif
>
> Overview
> The package contains the classes that provide chaining of Persistence Managers support through an implementation of the chain of responsibility pattern.
> The ChainedPersistenceManager class is the chain's external controller.
> The current implementation uses composition instead of inheritance. The concrete handlers (PersistenceManager) are private members instead of subclasses.
> For reading commands no evaluation is performed, the ChainedPersistenceManager returns the response of the first handler that finds the object.
> For writing commands, the PersistenceManagerHandler class delegates conditionally the persistence calls to the concrete implementation based on a custom evaluation.
> Custom PersistenceManagerEvaluator implementations can be set through configuration.
> Custom listeners can be added to the ChainedPersistenceManager class. It allows to perform custom operations on "after init" and "before close" events.
> Warning
> This package should be used only in a couple of cases and none of them is the best practice.
> * Sharing jcr data with others systems through a custom PersistenceManager
> * Integrating a legacy system
> Reliability, integrity and performance of the PersistenceManager are *crucial* to the overall stability & performance of the repository. if e.g. the data that a PersistenceManager is based upon is allowed to change through external means the integrity of the repository would be at risk (think of referential integrity/ node references e.g.).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (JCR-65) ChainedPersistenceManager
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-65?page=all ]
Jukka Zitting resolved JCR-65:
------------------------------
Resolution: Won't Fix
Resolving this issue as "Won't fix" to clean up the open issues list.
As Edgar already mentioned, there is little support for the idea of adding complexity to the persistence manager layer. I think that we should try to find other solutions to the mentioned needs. Until such a solution is found we can direct people who have needs like this to this issue as an unsupported interim solution.
Please reopen this issue if there is a design change that would favor this kind of an approach.
For reference, see the original discussion thread at:
http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/911
> ChainedPersistenceManager
> -------------------------
>
> Key: JCR-65
> URL: http://issues.apache.org/jira/browse/JCR-65
> Project: Jackrabbit
> Type: New Feature
> Reporter: Edgar Poce
> Assignee: Jukka Zitting
> Priority: Minor
> Attachments: 05-03-15-chained-persistence.zip, uml-class.gif
>
> Overview
> The package contains the classes that provide chaining of Persistence Managers support through an implementation of the chain of responsibility pattern.
> The ChainedPersistenceManager class is the chain's external controller.
> The current implementation uses composition instead of inheritance. The concrete handlers (PersistenceManager) are private members instead of subclasses.
> For reading commands no evaluation is performed, the ChainedPersistenceManager returns the response of the first handler that finds the object.
> For writing commands, the PersistenceManagerHandler class delegates conditionally the persistence calls to the concrete implementation based on a custom evaluation.
> Custom PersistenceManagerEvaluator implementations can be set through configuration.
> Custom listeners can be added to the ChainedPersistenceManager class. It allows to perform custom operations on "after init" and "before close" events.
> Warning
> This package should be used only in a couple of cases and none of them is the best practice.
> * Sharing jcr data with others systems through a custom PersistenceManager
> * Integrating a legacy system
> Reliability, integrity and performance of the PersistenceManager are *crucial* to the overall stability & performance of the repository. if e.g. the data that a PersistenceManager is based upon is allowed to change through external means the integrity of the repository would be at risk (think of referential integrity/ node references e.g.).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (JCR-65) ChainedPersistenceManager
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-65?page=all ]
Jukka Zitting closed JCR-65:
----------------------------
> ChainedPersistenceManager
> -------------------------
>
> Key: JCR-65
> URL: http://issues.apache.org/jira/browse/JCR-65
> Project: Jackrabbit
> Type: New Feature
> Reporter: Edgar Poce
> Assignee: Jukka Zitting
> Priority: Minor
> Attachments: 05-03-15-chained-persistence.zip, uml-class.gif
>
> Overview
> The package contains the classes that provide chaining of Persistence Managers support through an implementation of the chain of responsibility pattern.
> The ChainedPersistenceManager class is the chain's external controller.
> The current implementation uses composition instead of inheritance. The concrete handlers (PersistenceManager) are private members instead of subclasses.
> For reading commands no evaluation is performed, the ChainedPersistenceManager returns the response of the first handler that finds the object.
> From jackrabbit-dev-return-3017-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Tue Jul 26 22:22:39 2005
Return-Path: <ja...@incubator.apache.org>
Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org
Received: (qmail 73182 invoked from network); 26 Jul 2005 22:22:24 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
by minotaur.apache.org with SMTP; 26 Jul 2005 22:22:24 -0000
Received: (qmail 91158 invoked by uid 500); 26 Jul 2005 22:22:01 -0000
Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm
Precedence: bulk
List-Help: <ma...@incubator.apache.org>
List-Unsubscribe: <ma...@incubator.apache.org>
List-Post: <ma...@incubator.apache.org>
List-Id: <jackrabbit-dev.incubator.apache.org>
Reply-To: jackrabbit-dev@incubator.apache.org
Delivered-To: mailing list jackrabbit-dev@inFor writing commands, the PersistenceManagerHandler class delegates conditionally the persistence calls to the concrete implementation based on a custom evaluation.
> Custom PersistenceManagerEvaluator implementations can be set through configuration.
> Custom listeners can be added to the ChainedPersistenceManager class. It allows to perform custom operations on "after init" and "before close" events.
> Warning
> This package should be used only in a couple of cases and none of them is the best practice.
> * Sharing jcr data with others systems through a custom PersistenceManager
> * Integrating a legacy system
> Reliability, integrity and performance of the PersistenceManager are *crucial* to the overall stability & performance of the repository. if e.g. the data that a PersistenceManager is based upon is allowed to change through external means the integrity of the repository would be at risk (think of referential integrity/ node references e.g.).
--
This message is automatically generated by JIcubator.apache.org
Received: (qmail 91116 invoked by uid 99); 26 Jul 2005 22:22:00 -0000
X-ASF-Spam-Status: No, hits=0.0 required=10.0
tests=
X-Spam-Check-By: apache.org
Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 15:21:42 -0700
Received: from ajax.apache.org (ajax.apache.org [127.0.0.1])
by ajax.apache.org (Postfix) with ESMTP id 6EBBDEA
for <ja...@incubator.apache.org>; Wed, 27 Jul 2005 00:21:39 +0200 (CEST)
Message-ID: <11...@ajax.apache.org>
Date: Wed, 27 Jul 2005 00:21:39 +0200 (CEST)
From: "Jukka Zitting (JIRA)" <ji...@apache.org>
To: jackrabbit-dev@incubator.apache.org
Subject: [jira] Closed: (JCR-132) BindableRepositoryFactory requires exact resource type
In-Reply-To: <12...@ajax.apache.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N
[ http://issues.apache.org/jira/browse/JCR-132?page=all ]
Jukka Zitting closed JCR-132:
-----------------------------
> BindableRepositoryFactory requires exact resource type
> ------------------------------------------------------
>
> Key: JCR-132
> URL: http://issues.apache.org/jira/browse/JCR-132
> Project: Jackrabbit
> Type: Wish
> Components: config
> Environment: JNDI
> Reporter: Jukka Zitting
> Assignee: Jukka Zitting
> Priority: Trivial
> Attachments: BindableRepositoryFactory.patch
>
> The org.apache.jackrabbit.jndi.BindableRepositoryFactory class requires the exact class name org.apache.jackrabbit.jndi.BindableRepository to be specified for the JNDI resource that the factory is responsible for. However the current deployment model 2 howto document suggest that the more generic interface name javax.jcr.Repository be used instead. Currently this suggested configuration results in a null JNDI resource .
> This issue should be fixed by either fixing the documentation (I can do this) or by relaxing the code in BindableRepositoryFactory. I'll attach a patch that does the latter, please comment on what you think is the best solution.
> This issue was detected during the mailing list thread
> http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/2303
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
RA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (JCR-65) ChainedPersistenceManager
Posted by "Edgar Poce (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-65?page=comments#action_62026 ]
Edgar Poce commented on JCR-65:
-------------------------------
After many conversations with the dev team about persistence manager responsibilities I feel more in favor of non smart implementations.
Now I see the chained persistence manager like a home made workaround and I think it should be discarded.
Nevertheless, I like the idea of legacy system integration, which was the motivation of this implementation.
I think that a framework for integrating legacy systems could be very useful.
> ChainedPersistenceManager
> -------------------------
>
> Key: JCR-65
> URL: http://issues.apache.org/jira/browse/JCR-65
> Project: Jackrabbit
> Type: New Feature
> Reporter: Edgar Poce
> Priority: Minor
> Attachments: 05-03-15-chained-persistence.zip, uml-class.gif
>
> Overview
> The package contains the classes that provide chaining of Persistence Managers support through an implementation of the chain of responsibility pattern.
> The ChainedPersistenceManager class is the chain's external controller.
> The current implementation uses composition instead of inheritance. The concrete handlers (PersistenceManager) are private members instead of subclasses.
> For reading commands no evaluation is performed, the ChainedPersistenceManager returns the response of the first handler that finds the object.
> For writing commands, the PersistenceManagerHandler class delegates conditionally the persistence calls to the concrete implementation based on a custom evaluation.
> Custom PersistenceManagerEvaluator implementations can be set through configuration.
> Custom listeners can be added to the ChainedPersistenceManager class. It allows to perform custom operations on "after init" and "before close" events.
> Warning
> This package should be used only in a couple of cases and none of them is the best practice.
> * Sharing jcr data with others systems through a custom PersistenceManager
> * Integrating a legacy system
> Reliability, integrity and performance of the PersistenceManager are *crucial* to the overall stability & performance of the repository. if e.g. the data that a PersistenceManager is based upon is allowed to change through external means the integrity of the repository would be at risk (think of referential integrity/ node references e.g.).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Updated: (JCR-65) ChainedPersistenceManager
Posted by "Edgar Poce (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-65?page=history ]
Edgar Poce updated JCR-65:
--------------------------
Attachment: uml-class.gif
05-03-15-chained-persistence.zip
1. UML class diagram in gif format.
2. Zip file
> ChainedPersistenceManager
> -------------------------
>
> Key: JCR-65
> URL: http://issues.apache.org/jira/browse/JCR-65
> Project: Jackrabbit
> Type: New Feature
> Reporter: Edgar Poce
> Priority: Minor
> Attachments: 05-03-15-chained-persistence.zip, uml-class.gif
>
> Overview
> The package contains the classes that provide chaining of Persistence Managers support through an implementation of the chain of responsibility pattern.
> The ChainedPersistenceManager class is the chain's external controller.
> The current implementation uses composition instead of inheritance. The concrete handlers (PersistenceManager) are private members instead of subclasses.
> For reading commands no evaluation is performed, the ChainedPersistenceManager returns the response of the first handler that finds the object.
> For writing commands, the PersistenceManagerHandler class delegates conditionally the persistence calls to the concrete implementation based on a custom evaluation.
> Custom PersistenceManagerEvaluator implementations can be set through configuration.
> Custom listeners can be added to the ChainedPersistenceManager class. It allows to perform custom operations on "after init" and "before close" events.
> Warning
> This package should be used only in a couple of cases and none of them is the best practice.
> * Sharing jcr data with others systems through a custom PersistenceManager
> * Integrating a legacy system
> Reliability, integrity and performance of the PersistenceManager are *crucial* to the overall stability & performance of the repository. if e.g. the data that a PersistenceManager is based upon is allowed to change through external means the integrity of the repository would be at risk (think of referential integrity/ node references e.g.).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira