avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: Phoenix Blocks as MBeans
Date Sat, 12 Jan 2002 02:17:47 GMT
On Sat, 12 Jan 2002 03:44, Fred Yeomans wrote:
> Is it currently possible to expose Phoenix Blocks as MBeans? All of the
> blocks in my app have static MBean interfaces, but I cannot see how to make
> Phoenix register them as MBeans in the MBeanServer.

It wasn't possible a few hours ago but it is now ;) The way I have it 
currently set up is the following. In your BlockInfo file you add something 
like the following

<!-- services that are exposed to management interface by block -->
  <service name="org.apache.avalon.MyManagementService" version="1.0" />

And then when Phoenix loads (and you have enabled --remote-manager) it will 
have the block exported to MBeanServer and all the methods defined by 
specified service will be available through MBeanServer.

If you are using the RMI interface for remote administration then there is an 
additional requirement - all the parameters must be serializable. Other than 
that you should be good to go.

The beans are currently registered under the name like


Anyways it seems to all work fine. A few issues though, <management> is a 
really bad term and I hope to think of a better one in the future so that 
may/will be changed in the future.  Also I am not sure about the name under 
which it is registered - still thinking about that.

Anyways if you have any requests/demands/suggestions then feel free to send 
them along :)



We should take care not to make the intellect our 
god; it has, of course, powerful muscles, but no 

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message