Re: State sharing

2013-08-20 Thread Peyman Faratin
and Solr which could then maintain whatever state it > needs. > > -- Jack Krupansky > > -Original Message- From: Peyman Faratin > Sent: Saturday, August 17, 2013 12:29 PM > To: solr-user@lucene.apache.org > Subject: State sharing > > Hi > > I ha

Re: State sharing

2013-08-19 Thread Jack Krupansky
Peyman Faratin Sent: Saturday, August 17, 2013 12:29 PM To: solr-user@lucene.apache.org Subject: State sharing Hi I have subclassed a SearchComponent (call this class S), and would like to implement the following transaction logic: 1- Client K calls the S's handler 2- S spawns a thread

Re: State sharing

2013-08-19 Thread Shalin Shekhar Mangar
As you noted, sharing S's ResponseBuilder is not possible because once the handler's process method is complete, the http action is deemed complete and the pipe is broken. You cannot send the client any further responses anymore. One way to solve this problem is to maintain the state of the job in

State sharing

2013-08-17 Thread Peyman Faratin
Hi I have subclassed a SearchComponent (call this class S), and would like to implement the following transaction logic: 1- Client K calls the S's handler 2- S spawns a thread and immediately acks K using rb.rsp.add("status","complete") then terminates public void process (ResponseBuilder rb)