Hi there,
I've got two containers - an application and a resource-manager container.
The application uses the resource manager (see block.xmls below). I'd like
to try out the configuration overriding as explained in the tutorial. As
different to the tutorial, we've got here two containers, in the tutorial
there was one.
No the overriding config.xml looks like that.
001 <targets>
002 <target path="/resource-manager/facade">
003 <configuration>
004 <source>configuration from outside a container</source>
005 </configuration>
006 </target>
007 </targets>
However, the result looks bad:
java.lang.IllegalArgumentException: Unable to locate a container with name
[resource-manager] within the container [[/]].
The container name is not found in the root container. I tried also
002 <target path="/application/resourcemanager">
As the component is addressed like that in the applications block.xml. This
does not throw an exception, but does load the configuration neither.
It seems that cross-container configuration overriding does not work?
Daniel
======== block.xml application =====================================
<container name="application">
<classloader>
<classpath>
<repository>
<resource id="avalon-framework:avalon-framework-api"
version="4.1.5"/>
<resource id="avalon-framework:avalon-framework-impl"
version="4.1.5"/>
<resource id="ups:ch.xmatrix.resource-api"
version="1.0"/>
<resource id="ups:ch.xmatrix.application"
version="1.0"/>
</repository>
</classpath>
</classloader>
<include name="resourcemanager"
id="ups:ch.xmatrix.resource-impl" version="1.0"/>
<component name="main-entry"
class="ch.xmatrix.gui.application.Application"
activation="startup"/>
</container>
======== block.xml resource manager ================================
<container name="resource-manager">
<classloader>
<classpath>
<repository>
<resource id="avalon-framework:avalon-framework-api"
version="4.1.5"/>
<resource id="avalon-framework:avalon-framework-impl"
version="4.1.5"/>
<resource id="ups:ch.xmatrix.resource-api"
version="1.0"/>
</repository>
</classpath>
</classloader>
<services>
<service type="ch.xmatrix.resource.ResourceManager">
<source>facade</source>
</service>
</services>
<component name="facade"
class="ch.xmatrix.resource.HierarchialResourceManagerFacade">
<configuration>
<source>ch.xmatrix.resource.Resources2</source>
</configuration>
</component>
</container>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]