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:

<externalResource>
      <name>MyDBResource</name>
      <description>a resource that provides read access to a 
database</description>
      <customResourceSpecifier>
          pathToCustomresourceSpecifier/myCustomResourceSpecifier.xml
      </customResourceSpecifier>
</externalResource>
        
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 :-)

--
Christoph Büscher

Reply via email to