On 6/29/07, Karen Loughran <[EMAIL PROTECTED]> wrote:
Yonik, Thanks for your reply,
I originally had implemented it as you suggest, ie, opened the core in a
static initialiser and never closed it, but my client hangs - AFTER receiving
the response back from solr (and after response from my utility jar).
I have now changed back to this approach, but... I have to put
a "System.exit(0)" at the end of my client code so that it can terminate.
Seems like there may be a thread still hanging around preventing my client
from exiting. Could this be to do with the ExecutorService using the default
thread factory which will create non-daemon threads ?
Yes, that's is most likely it.
-Yonik