: >From what I saw in the sources , solr relies on a Filter notion to
: deal with queries involving multicore, but I cannot see why this could
: have an influence on what resources is available from the eyes of who.
: 
: Can't a webapp see the same things as the web users does ? j2ee gurus help !
: 
: Is there something I'm missing here ? (both webapps are with 
crossContext=true )

i think you already noticed in another thread that this is probably 
because Solr doens't use the <dispatcher>FORWARD</dispatcher> option in 
web.xml ... as mentioned in that thread, you could try turning it on, but 
my advice owuld be to just use SolrJ to connect to the solr webapp 
over the network exactly as if it were on a remote host 
(ie: "http://localhost:XXXX/solr";).  now you have a much cleaner 
abstraction between your code and solr, and if you decide later that you 
want to scale out by moving solr to it's own box you don't have to rewrite 
any code.

if you relly want a tight binidng to solr, just embed the whole solr.war 
inside of your own war (the RequestDispatcher has a "prefix" option to 
make this easy)



-Hoss

Reply via email to