uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Spico Florin <spicoflo...@gmail.com>
Subject How to create an annotator that should reload its resources at runtime (without restarting the pipeline)?
Date Fri, 18 Nov 2011 14:17:55 GMT
I'm using UIMA ConceptMapper Annotator. Due to the fact that its dictionary
can be changed outside the UIMA pipeline(we have this scenario),
I would like to reload the content of used dictionary without restarting
the whole pipeline. The pipeline is deployed on the UIMA AS.
Here is my solution for the described use case:
1. I order to reload the dictionary, I have extended the provided
2. I've connected it to the ActiveMQ message broker (by making this
annotator to listen to a topic).
3. When a message is consumed by  MyAnnotator, the dictionary is reloaded.
Given the above scenario, I would like to point out the following:
 1. Is this approach correct? Meaning, is correct (concerning the UIMA
framework) to connect from an annotator a connection to the MessageBroker?
  My concern is, that since the Annotator itfel will be wrapped into a
Agreggate that is listening a queue, we will have two connections to the
  ActiveMQ (one from the warpper and one from the annotator).
  2. What is the best practice to deal with this kind of scenario? Any
suggestions is welcomed here.

  I look forward for your answers.
Thank you.

Kind regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message