mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
IOC for scheduling
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2696 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -522,6 +522,7 @@ public class LuceneTest extends TestCase
|
||||
{
|
||||
try
|
||||
{
|
||||
authenticationComponent.setSystemUserAsCurrentUser();
|
||||
UserTransaction tx = transactionService.getUserTransaction();
|
||||
tx = transactionService.getUserTransaction();
|
||||
tx.begin();
|
||||
@@ -559,7 +560,7 @@ public class LuceneTest extends TestCase
|
||||
|
||||
tx.rollback();
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Throwable e)
|
||||
{
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
@@ -160,14 +160,14 @@ public class FullTextSearchIndexerImpl implements FTSIndexerAware, FullTextSearc
|
||||
StoreRef toIndex = getNextRef();
|
||||
if (toIndex != null)
|
||||
{
|
||||
//System.out.println("Indexing "+toIndex+" id is "+this);
|
||||
//System.out.println("Indexing "+toIndex+" at "+(new java.util.Date()));
|
||||
LuceneIndexer indexer = luceneIndexerAndSearcherFactory.getIndexer(toIndex);
|
||||
indexer.registerCallBack(this);
|
||||
indexer.updateFullTextSearch(1000);
|
||||
}
|
||||
else
|
||||
{
|
||||
//System.out.println("Nothing to index"+" id is "+this);
|
||||
{
|
||||
//System.out.println("Nothing to Indexing at "+(new java.util.Date()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user