lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lamprecht <clampre...@gmail.com>
Subject Re: LUCENE + EXCEPTION
Date Tue, 25 Jan 2005 04:18:03 GMT
Hi Karthik,

If you are talking about SingleThreadModel (i.e. your servlet
implements javax.servlet.SingleThreadModel), this does not guarantee
that two different instances of your servlet won't be run at the same
time.  It only guarantees that each instance of your servlet will only
be run by one thread at a time.  See:

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/SingleThreadModel.html

If you are accessing a shared resource (a lucene index), you'll have
to prevent concurrent modifications somehow other than
SingleThreadModel.

I think they've finally deprecated SingleThreadModel in the latest
(may be not even out yet) servlet spec.

-chris

 
> On STANDALONE Usge of   UPDATION/DELETION/ADDITION of Documents into
> MergerIndex, the  Code of mine
> 
> 
> runs PERFECTLY  with out any Problems.
> 
> 
> But When the same Code is plugged into a WEBAPP on TOMCAT with a servlet
> Running in SINGLE THREAD MODE,Some times 
> 
> 
> Frequently I get the Error as below

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message