Re: Lucene and JSP

2008-11-09 Thread Noble Paul നോബിള്‍ नोब्ळ्
You can use a ContextListener in a servlet engine (like Tomcat) . ContextListener has callback methods for init an destroy. You may open an IndexSearcher in the init and store it in the ServletContext by a name and every servlet can use that. When the app is stopped you get a calllback and you can

Re: Lucene and JSP

2008-11-08 Thread Rafael Cunha de Almeida
On Sat, 8 Nov 2008 10:53:43 + "Mindaugas Žakšauskas" <[EMAIL PROTECTED]> wrote: > > How do I keep only one IndexSearcher open for all the searches on my > > website? > > In order to keep your IndexSearcher open, simply do not close it and > serve the reference to the same object instance for

Re: Lucene and JSP

2008-11-08 Thread Mindaugas Žakšauskas
> How do I keep only one IndexSearcher open for all the searches on my > website? In order to keep your IndexSearcher open, simply do not close it and serve the reference to the same object instance for different HTTP request clients. This can easily be achieved using Singleton wrapper around Ind

Re: lucene and jsp

2005-11-06 Thread Manoj Kr. Sheoran
You should check your logs on server side(on tomcat). I am sure some exception is generated over there. --Manoj - Original Message - From: "Gaston" <[EMAIL PROTECTED]> To: Sent: Saturday, November 05, 2005 10:51 PM Subject: lucene and jsp > Hallo, > > I know my topic is a little bit

Re: lucene and jsp

2005-11-06 Thread Valerio Schiavoni
it seems like the problem is from here: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.lucene.writeLockTimeout read) try to use this properly: System.setProperty("disableLuceneLocks", "true"); 2005/11/5, Gaston <[EMAIL PROTECTED]>: > > Hallo, > > I