[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-144) add option to keep indexer running till finished.

Jason Eacott (JIRA) noreply at atlassian.com
Sun Dec 16 00:30:56 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29162 ] 

Jason Eacott commented on HSEARCH-144:
--------------------------------------

Yeh the finalizer thing is pretty naf, I suggested it because that where the current shutdown resides.
I had also considered that if the pool were exposed - perhaps via a new  hib-search event/listener interface :) - then it would be possible to register a listener  to catch the shutdown event and programaticaly do whatever you like on shutdown. it would be trivial to supply a default listener to handle the most common cases.

> add option to keep indexer running till finished.
> -------------------------------------------------
>
>                 Key: HSEARCH-144
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-144
>             Project: Hibernate Search
>          Issue Type: Improvement
>          Components: engine
>    Affects Versions: 3.0.0.GA
>            Reporter: Jason Eacott
>             Fix For: 3.0.1
>
>   Original Estimate: 30 minutes
>  Remaining Estimate: 30 minutes
>
> Hi all, I've just installed and got running hibernate search - very cool!
> But a very minor enancement would help a lot I think, for those of us still in testing mode and not using the jms option yet.
> It would be very handy if there was a config option for the async executorService to stay up and complete its tasks after the app itself has been shutdown.
> In BatchedQueueingProcessor finalize just need to add something like this line after the  executorService.shutdown();( if its set to wait in the config somewhere of course), or even better replace the params here with user defined entries from config.
> 	executorService.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS );
> The only other feature I'd like is the capability to use Spring jms instead of the jboss one out of the box. :)
> Great product.
> Cheers
> Jason.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list