|
[
Permlink
| « Hide
]
fabrizio giustina added a comment - 11/May/05 05:01 AM
stack from error (1)
As discussed in
What would be the best solution to this problem? I tried looking for a more generic solution, but couldn't find any. Fixed as suggested in revision 179394.
Please reopen this issue if a better workaround is found. Reopening this issue as it seems that the fix did get broken. :-( See http://article.gmane.org/gmane.comp.apache.jackrabbit.devel/3745 for Fabrizio's message that details the breakage.
I propose to remove the entire addShutdownHook() call from the RepositoryImpl class. The shutdown hook could possibly be set up by the BindableRepositoryFactory class and other similar container tools, but normal client code that instantiates a RepositoryImpl object should be required to also explicitly call RepositoryImpl.shutdown() to properly close the repository. Scheduled for 1.0 and changed from an observation improvement request to a core bug report.
> I propose to remove the entire addShutdownHook() call from the RepositoryImpl class
+1 > I propose to remove the entire addShutdownHook() call from the RepositoryImpl class
+1 > I propose to remove the entire addShutdownHook() call from the RepositoryImpl class
+1. Removed the shutdown hook in revision 307128. This change makes it the responsibility of the client application that instantiates the RepositoryImpl object to also invoke the shutdown method. However I did place a similar shutdown hook into the BindableRepository class in order to minimize the effect on JNDI environments where there is no easy way to explicitly invoke the shutdown method.
I'm closing this issue with this change. See |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||