You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Debbie Zhang <de...@gmail.com> on 2017/04/28 08:13:21 UTC
Refreshing external resources periodically
Hi UIMA users,
I have a question regarding accessing external resources. If my external resource file is the output of a database table, the data are updated daily. Can I read the resource file daily as well and update my annotations accordingly? I deploy my pear to elsewhere. At the moment, resource files are included in the pear file so no refresh can be done. Any suggestion is very welcome. Thank you.
Regards,
Debbie
Sent from my iPhone
RE: Refreshing external resources periodically
Posted by jo...@thomsonreuters.com.
Thanks, Peter.
My mistake, but I guess I won't reply-to-all with an apology since I've spammed the community enough today ;).
Regards
Jochen
-----Original Message-----
From: Peter Klügl [mailto:peter.kluegl@averbis.com]
Sent: 02 May 2017 10:58
To: user@uima.apache.org
Subject: Re: Refreshing external resources periodically
Hi Jochen,
you need to send the mail to user-unsubscribe@uima.apache.org <ma...@uima.apache.org> in order to unsubscribe.
Best,
Peter
Am 02.05.2017 um 11:47 schrieb jochen.leidner@thomsonreuters.com:
> unsubscribe
>
Re: Refreshing external resources periodically
Posted by Peter Klügl <pe...@averbis.com>.
Hi Jochen,
you need to send the mail to user-unsubscribe@uima.apache.org
<ma...@uima.apache.org> in order to unsubscribe.
Best,
Peter
Am 02.05.2017 um 11:47 schrieb jochen.leidner@thomsonreuters.com:
> unsubscribe
>
RE: Refreshing external resources periodically
Posted by jo...@thomsonreuters.com.
unsubscribe
Re: Refreshing external resources periodically
Posted by Marshall Schor <ms...@schor.com>.
Hi Debbie,
I think this depends on what kind of external resource you have. Are you able
to see what Java class is implementing the external resource? For instance, I'm
guessing you must at some point in your code have some code that says something
like:
myResource.myMethodToGetDataFromIt(...).
If you have that, you can see if the class implementing myResource has a method
you could call to reload itself. If it does, then you could build a little
timer application that went off once a day, and called that api, perhaps with
some synchronization...
Does this help, or have I misunderstood things? -Marshall
On 4/28/2017 4:13 AM, Debbie Zhang wrote:
> Hi UIMA users,
>
> I have a question regarding accessing external resources. If my external resource file is the output of a database table, the data are updated daily. Can I read the resource file daily as well and update my annotations accordingly? I deploy my pear to elsewhere. At the moment, resource files are included in the pear file so no refresh can be done. Any suggestion is very welcome. Thank you.
>
> Regards,
>
> Debbie
>
> Sent from my iPhone