You are using a singleton resource manager? I wonder if that is 
really a good idea. Is this testing code or production code?

-- Richard

> On 18.05.2017, at 10:58, Peter Klügl <[email protected]> wrote:
> 
> The solution for me was just to ensure that there is only one resource
> manager used in the uimaFIT factories. A thing that is actually well
> known to me. I simply added this before I create the JCas for the thread
> local:
> 
> 
> final ResourceManager resourceManager =
> ResourceManagerFactory.newResourceManager();
> 
>            ResourceManagerCreator resourceManagerCreator = new
> ResourceManagerCreator() {
> 
>                @Override
>                public ResourceManager newResourceManager() throws
> ResourceInitializationException {
> 
>                    return resourceManager;
>                }
> 
>            };
> 
> ResourceManagerFactory.setResourceManagerCreator(resourceManagerCreator);

Reply via email to