Because of the Pojoification of our mBeans I think we need to review what operations are
exposed to clients via JMX. As far as i can see there are only the 3, the ServerPeer and
the Topic/Queue Service.
If we take the ServerPeer first we expose the operations by the following tag
| @JMX(name="jboss.messaging:service=Server", exposedInterface =
JmsServer.class)
| public class ServerPeer implements JmsServer
| {
| ...
| }
|
We then expose the operations via the interface, Currently this would be:
| public interface JmsServer
| {
| String getJMSVersion();
|
| int getJMSMajorVersion();
|
| int getJMSMinorVersion();
|
| String getJMSProviderName();
|
| String getProviderVersion();
|
| int getProviderMajorVersion();
|
| int getProviderMinorVersion();
|
| void enableMessageCounters();
|
| void disableMessageCounters();
|
| String deployQueue(String name, String jndiName) throws Exception;
|
| String deployQueue(String name, String jndiName, int fullSize, int pageSize, int
downCacheSize) throws Exception;
|
| boolean destroyQueue(String name) throws Exception;
|
| boolean undeployQueue(String name) throws Exception;
|
| String deployTopic(String name, String jndiName) throws Exception;
|
| String deployTopic(String name, String jndiName, int fullSize, int pageSize, int
downCacheSize) throws Exception;
|
| boolean destroyTopic(String name) throws Exception;
|
| boolean undeployTopic(String name) throws Exception;
|
| String listMessageCountersAsHTML() throws Exception;
|
| void resetAllMessageCounters();
|
| void resetAllMessageCounterHistories();
|
| List retrievePreparedTransactions();
|
| String showPreparedTransactionsAsHTML();
|
| String showActiveClientsAsHTML() throws Exception;
| }
|
If you think anything should be changed/added/removed nows the time to say and I'll do
it.
With regard to Topics and Queues it may pay to do this a little differently as they'll
just be created on the fly, not as beans, so there will be no operations to expose.
We could add all these methods to the above interface and do it via the
ServerPeer->PostOffice and pass down an extra parameter being the destination bind
name.
Any comments?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100996#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...