Only the MessagingServer knows how to create a MessagingServerManagement instance.
Passing a MessagingServer instance into the MessagingServerManagement constructor is not
desirable since it would require us to expose publicly a load of internal details of the
MessagingServer.
Here is how we create a MessagingServerManagement instance, internal to the
MessagingServer
| serverManagement = new MessagingServerManagementImpl(postOffice, storageManager,
configuration, connectionManager,
securityRepository,
queueSettingsRepository, this);
|
Most of these params are internal to the MessagingServer and I don't want to have to
expose them publicly just so MC can expose the MessagingServerManagement class as JMX.
I believe MC should be flexible enough to support this factory style approach of creating
manageable objects. Allowing to specify @JMX on an attribute level would certainly work
for us.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160034#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...