Sounds good, I'll try it -- Thanks!

--- On Tue, 12/30/08, Adam Lally <[email protected]> wrote:

> From: Adam Lally <[email protected]>
> Subject: Re: Threads in UIMA
> To: [email protected], [email protected]
> Date: Tuesday, December 30, 2008, 5:57 PM
> On Tue, Dec 30, 2008 at 5:17 PM, Howard G.
> <[email protected]> wrote:
> > My problem is this:  in Main-thread, mCPE.process()
> returns right away; it does not wait around to make sure
> that the CPE finished OK.  I need a way to do that.  It
> would work if Main-thread could do a join() on
> BaseCPMImpl-Thread, but I don't see any way to do that.
> >
> > Any ideas?
> >
> 
> Hi Howard,
> 
> You can do this by waiting for the the
> StatusCallbackListener's
> collectionProcessComplete() method to be called.  For
> example the main
> thread could call wait() on the StatusCallbackListenerImpl
> instance,
> and then
> StatusCallbackListenerImpl.collectionProcessComplete() can
> call notifyAll.
> 
>  -Adam

Reply via email to