azazali30 commented on issue #314: URL: https://github.com/apache/uima-uimaj/issues/314#issuecomment-1557097448
> Ok, but is this code called from multiple threads? Note that UIMA components are not expected to be thread-safe. When UIMA parallelizes, it creates multiple instances of a component - one for each of the parallel threads. A component may declare that it is not parallelizable (e.g. writers or components with static fields), then UIMA would not parallelize the component at all and only use a single single-threaded instance of this component. > > Are you trying to share a component across multiple concurrent threads? we are caching the AnalysisEngine engine = org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine(aaeDesc); so every thread will be using same instance of AnalysisEngine . Is that fine -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@uima.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org