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
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
> 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
Hello,
I'm writing my first JSP application, so this may be too much of a
newbie question, in which case I hope you can refer me to documentation
which can help me out.
How do I keep only one IndexSearcher open for all the searches on my
website?
-
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
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
Hallo,
I know my topic is a little bit out of topic. but I am trying and trying
to do something without no effort. I have a very simple application.I
tested this application on my homepc with tomcat 3.3.2 and it worked.
But on the the server off my webhosting agency it does not work. I
putted