Hi,

Moving this across to the phoenix list.

On Fri, 8 Mar 2002 19:02, Jörg Bauer/Denic wrote:
> I wanted to exchange the DefaultManager with a new Manager doing the
> JMX-Management with MX4J ( was openJMX).
> I found out that there is no "out-of-the-box" possibility to define wich
> class should be used for the different parts of the phoenix system.
>
> I started to change the DefaultEmbeddor to read a
> {phoenix.home}/conf/phoenix.xml to get the information he needs to setup
> the different parts:

Fantastic!

I wanted to do this before but never got the cycles to do it. Would you mind 
renaming phoenix.xml to kernel.xml ?

> (example):
>
> <phoenix>
>                 <systemManager
> class="org.apache.avalon.phoenix.components.manager.DefaultMX4JManager">
>                         <port>111</port>
>                         <httpAdapter>8082</httpAdapter>
>                         <user>admin</user>
>                         <password>phoenix</password>
>                 </systemManager>
> </phoenix>
>
> modules not mentioned there still use the old "Default"-implementations.
> If the modules implement "Configurable" they get a "Configuration".

Sounds good to me. I was actually thinking of having all the modules loaded 
from XML rather than just a few but either way is good.

> Questions:
> - am i on the right way ???

yep.

> - is it ok to read this in the DefaultEmbeddor or should this happen in
> CLIMain (giving us the possibility to even overwrite DefaultEmbeddor())
> ???

I would read the config from CLIMain however if we were to overwrite the 
embeddor - I think I would prefer to do it from a commandline entry. That way 
the format of the xml config file is completely up to the embeddor to use and 
does not need to be known about in two places (ie the CLIMain and the 
embeddor)

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

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

Reply via email to