Refreshing external resources periodically

2017-04-28 Thread Debbie Zhang
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

2017-04-29 Thread Marshall Schor
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



RE: Refreshing external resources periodically

2017-05-02 Thread jochen.leidner
unsubscribe



Re: Refreshing external resources periodically

2017-05-02 Thread Peter Klügl
Hi Jochen,


you need to send the mail to user-unsubscr...@uima.apache.org
 in order to unsubscribe.


Best,


Peter


Am 02.05.2017 um 11:47 schrieb jochen.leid...@thomsonreuters.com:
> unsubscribe
>



RE: Refreshing external resources periodically

2017-05-02 Thread jochen.leidner
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.klu...@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-unsubscr...@uima.apache.org 
<mailto:user-unsubscr...@uima.apache.org> in order to unsubscribe.


Best,


Peter


Am 02.05.2017 um 11:47 schrieb jochen.leid...@thomsonreuters.com:
> unsubscribe
>