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:
Andrew Hind
2006-04-24 16:22:49 +00:00
parent 921fae254f
commit d467d1a208
4 changed files with 279 additions and 43 deletions

View File

@@ -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);
}

View File

@@ -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()));
}
}