Steve Suppe | 1 Oct 20:53

Re: Cannot share Session object when using PEAR class loaders.

If data needs to be shared among multiple instances of a remote deployment, 
shouldn't a statically allocated object work just as well?  There are 
synchronization issues, to be sure, but since each annotator runs in its 
own JVM (multiple deployments as well), then that should be able to be shared.

Thanks,
Steve

At 07:38 AM 10/1/2007, you wrote:
>Danai,
>
>On 9/28/07, Danai Wiriyayanyongsuk <danaiw@...> wrote:
> > Hi folks,
> >
> > I'm trying the PEAR class loaders in UIMA 2.2. I think I found an issue
> > that, if a PEAR description file is specified in the aggregate analysis
> > engine description, the session object returned from the method
> > 
> org.apache.uima.analysis_component.JCasAnnotator_ImplBase.getContext().getSession()
> > from the related annotator will be different from other annotators. In 
> other
> > words, the annotators cannot share the same session object if the PEAR 
> class
> > loader is used.
> >
>
>Actually the Session objects aren't really fully implemented - we
>should have said this in the javadocs, sorry about that.  Here's the
>idea, though:
>
(Continue reading)


Gmane