Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2113A200C65 for ; Sat, 29 Apr 2017 19:57:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1E08F160BA9; Sat, 29 Apr 2017 17:57:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 64958160B98 for ; Sat, 29 Apr 2017 19:57:10 +0200 (CEST) Received: (qmail 82027 invoked by uid 500); 29 Apr 2017 17:57:03 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 82016 invoked by uid 99); 29 Apr 2017 17:57:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Apr 2017 17:57:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 419E21A049B for ; Sat, 29 Apr 2017 17:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id d6YIv7tuNPV3 for ; Sat, 29 Apr 2017 17:56:59 +0000 (UTC) Received: from gateway30.websitewelcome.com (gateway30.websitewelcome.com [192.185.168.15]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 097915FB43 for ; Sat, 29 Apr 2017 17:56:59 +0000 (UTC) Received: from cm5.websitewelcome.com (cm5.websitewelcome.com [108.167.139.22]) by gateway30.websitewelcome.com (Postfix) with ESMTP id CD14F178B9 for ; Sat, 29 Apr 2017 12:56:51 -0500 (CDT) Received: from gator3253.hostgator.com ([198.57.247.217]) by cm5.websitewelcome.com with id EHwq1v00K4i9tuE01HwrGu; Sat, 29 Apr 2017 12:56:51 -0500 Received: from ool-4a5a0cb8.dyn.optonline.net ([74.90.12.184]:64576 helo=[192.168.1.217]) by gator3253.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1d4Wby-000Fq5-5b for user@uima.apache.org; Sat, 29 Apr 2017 12:56:50 -0500 Subject: Re: Refreshing external resources periodically To: user@uima.apache.org References: <626EF06A-9768-4521-943F-F95D2EBDF9E4@gmail.com> From: Marshall Schor Message-ID: <7824b806-5838-31d3-3ab8-1e520026ec43@schor.com> Date: Sat, 29 Apr 2017 13:56:56 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <626EF06A-9768-4521-943F-F95D2EBDF9E4@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3253.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source-IP: 74.90.12.184 X-Exim-ID: 1d4Wby-000Fq5-5b X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ool-4a5a0cb8.dyn.optonline.net ([192.168.1.217]) [74.90.12.184]:64576 X-Source-Auth: msa+schor.com X-Email-Count: 3 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yMzI1My5ob3N0Z2F0b3IuY29t archived-at: Sat, 29 Apr 2017 17:57:11 -0000 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