lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hachmann, Bjoern" <hachmann.bjo...@guj.de>
Subject AW: Cross-context-forward to solr-instance
Date Mon, 08 Sep 2008 07:57:29 GMT
Hi,

I made a mistake. At least with Tomcat 5.5.x, if you configure the SolrRequestFilter with
<dispatcher>FORWARD</dispatcher> it indeed gets called even when you forward from
another web-context! 

Note, that the documentation says this might be problematic!

Sorry for the previous overhasty post.
Björn

> -----Ursprüngliche Nachricht-----
> Von: 
> solr-user-return-13537-hachmann.bjoern=guj.de@lucene.apache.or
> g 
> [mailto:solr-user-return-13537-hachmann.bjoern=guj.de@lucene.a
pache.org] Im Auftrag von Hachmann, Bjoern
> Gesendet: Samstag, 6. September 2008 08:01
> An: solr-user@lucene.apache.org
> Betreff: Cross-context-forward to solr-instance
> 
> Hi, 
>  
> yesterday I tried the Solr-1.3-RC2 and everything seems to 
> work fine using the traditional single-core setup. But while 
> troubleshooting the new multi-core feature, I realized for 
> the first time, that I have been using the deprecated (even 
> in 1.2) class SolrServlet. This is a huge problem for us, as 
> we run the solr-web-app parallel to our main web-app in the 
> same servlet-container. Using this approach we can internally 
> forward update- and select-requests to the Solr-instance 
> currently in use. 
>  
> ServletContext ctx = getServletContext().getContext("solr1");
> RequestDispatcher rd = ctx.getNamedDispatcher("SolrServer");
> rd.forward(request, response);
> 
> As you can see, this approach only works for the servlet 
> named 'SolrServer' which references the deprecated class. 
> 
> The attempt of using a path based dispatcher 
> (ctx.getRequestDispatcher) was not successful, even though I 
> configured the SolrRequestFilter in the solr-web.xml to work 
> on forwards (<dispatcher>FORWARD</dispatcher>), which the 
> documentation discourages. Maybe this is because of the 
> cross-context-dispatch?
> 
> At the moment I ran totally out of ideas, apart from 
> completely redesigning our whole setup. Any ideas are highly 
> appreciated. 
> 
> Thanks in advance,
> Björn

Mime
View raw message