Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 90947 invoked from network); 2 Jul 2008 09:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2008 09:53:56 -0000 Received: (qmail 73266 invoked by uid 500); 2 Jul 2008 09:53:57 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 73243 invoked by uid 500); 2 Jul 2008 09:53:57 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 73232 invoked by uid 99); 2 Jul 2008 09:53:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 02:53:57 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.188] (HELO moutng.kundenserver.de) (212.227.126.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 09:53:05 +0000 Received: from [9.152.14.86] (blueice4n1.de.ibm.com [195.212.29.187]) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis) id 0ML29c-1KDz1g3mnP-0002dB; Wed, 02 Jul 2008 11:53:24 +0200 Message-ID: <486B508C.3030501@michael-baessler.de> Date: Wed, 02 Jul 2008 11:55:24 +0200 From: Michael Baessler Reply-To: mba@michael-baessler.de User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: Questions about using a "customResourceSpecifier" References: <486A42B1.5020209@neofonie.de> In-Reply-To: <486A42B1.5020209@neofonie.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX19/zYBKNOidlgbNkw3QbGQhkJxYflIStJ9/St8 zTUYl9tiYp373+luq8o2kYx+k0DH5a+A0SzmEWljQ8hgQNx8FU kAeLWbSO3tnIYhvA7fEMw== X-Virus-Checked: Checked by ClamAV on apache.org Hi Christoph, I think you mixed up two different concepts here, maybe the documentation is misleading. So CustomResourceSpecifiers are mainly intended to be used if you want to create your own new UIMA Resource in the sense of a UIMA component. So for example you may know that we have different UIMA remote service protocols (SOAP, Vinci). If you now want to create a new service protocol based on your own implementation you can implement that using the CustomResourceSpecifier approach. When integrating this resource/component the UIMA framework can treat this similar to an analysis engine. Such resource an for example be plugged in as delegate to an aggregate analysis engine. I don't think that CustomResourceSpecifier can be integrated as externalResource to an analysis engine. You may check the documentation for externalResoruces with a short example here: http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.aae.accessing_external_resource_files I think that what you are trying to do. Another example for externalResources is available in the Tagger annotator in the Sandbox. This annotator use an external resource for the model file (ModelResource). Hope that helps. -- Michael Christoph Büscher wrote: > Hi, > > I have a few questions about binding to external resources that are no > file resources. The documentation mentions the option to use a > "customResourceSpecifier" as described in > > http://incubator.apache.org/uima/downloads/releaseDocs/2.2.2-incubating/docs/html/references/references.html#ugr.ref.xml.component_descriptor.custom_resource_specifiers > > > I would like to use the resource mechanism to bind to an interface for > read access to a database. The database connection parameters would be > parameters in the "customResourceSpecifier". > > I have a few questions concerning this. > > 1. How do I include a custom resource specifier in e.g. a CPEs resource > binding? It's not exactly clear to me from the documentation, but I > would try something like: > > > MyDBResource > a resource that provides read access to a > database > > pathToCustomresourceSpecifier/myCustomResourceSpecifier.xml > > > > Can I find examples for the correct syntax here somewhere in the > documentation? > > 2. The documentation mentions the implementation class must implement > the "Resource" interface. Is there any existing implementation of > "Resource" that is safe to extend to use in an external resource binding? > > > Also, if I'm completely on the wrong track with this approach to share > read connection to a database for differen TAEs/readers please let me > know :-) >