> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 21, 2004 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: Overriding a parameter
> Importance: High
> 
> Hi,
> I'm trying to override the rmi parameter for the
> MX4JComponentRegistrationManager in the jmx facility. In the embedded
> block.xml it is referred to as registry, so I tried
> <targets>
>       <target path="/TopContainer/mx4j/jmx-mx4j-manager">
>               <parameters>
>                       <parameter name="enable-rmi-adaptor"
value="true"/>
>               </parameters>
>       </target>
> </targets>
> 
> And a <include name="mx4j" id="avalon-jmx:avalon-jmx-mx4j"
> version="SNAPSHOT"> in my own block.xml
> 
> However, it doesn't seem to work.
> When I hardcode the parameter to true, it works, so it sounds like a
> configuration problem. The embedded block.xml seems to work since I
can
> change the parameters in the build.xml file.
> 
> How can I override the parameters?

You can't (today).
Basically we need to add support for parameters to the targets override
model.  You only immediate option is to use a configuration instead (yep
- it sucks) - but it would not be hard to update the targets reader and
object model to support this.  Basically a target override file is read
in using the XMLTargetsCreator which creates a Targets instance.  The
target is then applied to a containment model as part of the process of
adding a container model to a parent model.  

> 
> Another issues is that setting the merlin.repository to
$user.home/.merlin
> on Windows ("Documents and settings")etc. does not work with the RMI
> Adapter
> since it gives an error saying
> 'unknown protocol "and"'.


Can you post the stacktrace for this?

Steve.

> 
> 
> Thanks
> 
> /peter




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to