Uploaded image for project: 'Stanbol'
  1. Stanbol
  2. STANBOL-1389

Restful NLP Analyses Engine should not initialise remote service during activation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.12.0
    • Fix Version/s: 1.0.0, 0.12.1
    • Component/s: Enhancement Engines
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              rwesten Rupert Westenthaler
              Reporter:
              rwesten Rupert Westenthaler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: