You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Christoph Büscher <ch...@neofonie.de> on 2008/02/13 17:21:52 UTC
Using in CPE
Hi,
I have a few questions concerning the use of the <resourceManagerConfiguration>
in a CPE, according to the "UIMA References, 3.8".
1. I am trying to overwrite the <externalResources> and
<externalResourceBindings> from a TAE in the CPE. This seems to work if I use
the "href=" property like in <resourceManagerConfiguration href="...">, but I'd
like to do the whole Resource Manager Configuration inside the CPE descriptor.
Is this generally possible with version 2.2.1?
2. If it is only possible to reference definitions and bindings for the external
resources in a separate file via the "href=" attribute, is this also possible
using the "import" machanism that searches for resources on the classpath? This
would be very useful because the "href=..." mechanism only seems to expand
relative paths according to the directory where the CPE has been started. This
path, however, changes in our scenario in the development and the productive
enviroment.
Any ideas or helpful hints?
--
--------------------------------
Christoph Büscher
Re: Using in CPE
Posted by Eddie Epstein <ea...@gmail.com>.
>
>
> 1. I am trying to overwrite the <externalResources> and
> <externalResourceBindings> from a TAE in the CPE. This seems to work if I
> use
> the "href=" property like in <resourceManagerConfiguration href="...">,
> but I'd
> like to do the whole Resource Manager Configuration inside the CPE
> descriptor.
> Is this generally possible with version 2.2.1?
The CPE is limited to just overriding the resource configuration parameters
for it's components.
>
> 2. If it is only possible to reference definitions and bindings for the
> external
> resources in a separate file via the "href=" attribute, is this also
> possible
> using the "import" machanism that searches for resources on the classpath?
> This
> would be very useful because the "href=..." mechanism only seems to expand
> relative paths according to the directory where the CPE has been started.
> This
> path, however, changes in our scenario in the development and the
> productive
> enviroment.
>
You should be able to create a custom resource that implements whatever
behavior is desired. See section 2.8 in the same reference.
Eddie