Rupert Westenthaler created STANBOL-1389:
--------------------------------------------
Summary: Restful NLP Analyses Engine should not initialise remote
service during activation
Key: STANBOL-1389
URL: https://issues.apache.org/jira/browse/STANBOL-1389
Project: Stanbol
Issue Type: Bug
Components: Enhancement Engines
Affects Versions: 0.12.0
Reporter: Rupert Westenthaler
Assignee: Rupert Westenthaler
Priority: Minor
Fix For: 1.0.0, 0.12.1
The @Activate method of the RESTfull NLP Analysis Engine should not initialise
the remote NLP serivce - meaning to send a GET request to acquire the supported
languages.
This may cause issues in cases when Stanbol and the NLP service do run in the
same servlet container as (1) in this case the NLP service will not be
available at this point (2) the initialization request will wait until the
timeount and (3) activate in OSGI is a single thread so this will also block
the initialization of other components.
The engine already supports a lazy initialization on the first enhancement
request. So this issue is only about deactivating the initialization in the
activate method.
--
This message was sent by Atlassian JIRA
(v6.2#6252)