On 1/16/07, Pavel Penchev <[EMAIL PROTECTED]> wrote:

...What about the case where solr and my application are deployed in the
same instance of say tomcat. Is there a way to skip the http requests
and use a direct api?...

The javax.servlet.RequestDispatcher interface allows you to access
other resources (including servlets) running in the same container.
I've never used it but it looks like what you'd need (including a
custom HttpServletResponse class to capture the other servlet's
output).

See http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets9.html#wp64684
which is part of
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

Depending on how much faster this is than going the http way, it might
be interesting to include it as another protocol in a Java Solr
client.

-Bertrand

Reply via email to