RE: Overriding a parameter

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <001201c46f1c$4549fa20$1601a8c0@devbox>

> -----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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.