jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-331) RepositoryConfig instance can not be reused once it has been passed to RepositoryImpl constructor
Date Wed, 15 Mar 2006 14:36:53 GMT
     [ http://issues.apache.org/jira/browse/JCR-331?page=all ]
     
Stefan Guggisberg closed JCR-331:
---------------------------------

    Resolution: Fixed

applied patch (svn r386078)

> RepositoryConfig instance can not be reused once it has been passed to RepositoryImpl
constructor
> -------------------------------------------------------------------------------------------------
>
>          Key: JCR-331
>          URL: http://issues.apache.org/jira/browse/JCR-331
>      Project: Jackrabbit
>         Type: Improvement
>   Components: config
>     Versions: 0.9
>  Environment: svn r382351
>     Reporter: Stefan Guggisberg
>     Assignee: Stefan Guggisberg
>     Priority: Minor
>      Fix For: 1.1
>  Attachments: reusable_config.patch
>
> RepositoryConfig and other *Config classes maintain state apart from parsed configuration
information;
> specifically they instantiate FileSystem implementations based on their configurations.
this makes it
> for the config consumers very hard to control the lifecycle of such FileSystem instances
as they need
> to close the file systems on repository shutdown.
> the following code illustrates the issue:
> RepositoryConfig repConf = RepositoryConfig.create(configFile, repHomeDir);
> RepositoryImpl rep = RepositoryImpl.create(repConf);
> // ...
> rep.shutdown();
> rep = RepositoryImpl.create(repConf);   
> // ==> repConfig (et al) contains references to FileSystem objects 
> // that have been closed by previous rep.shutdown() call

-- 
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


Mime
View raw message