[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JMX Operations to expose to clients in JBM 2.0
ataylor
do-not-reply at jboss.com
Thu Nov 1 15:23:46 EDT 2007
"timfox" wrote
anonymous wrote : Does the micro-container not support dynamically exposing an object created at runtime as a MBean?
yes i think it does, but its a lot of extra work to create the destinations as beans (and destroy them") when they don't really need to be. If we look at say the QueueService method
| public List listAllMessages() throws Exception
|
we expose this on the ServerPeer and the implementation is simply
| public List listAllMessages(String queueName) throws Exception
| {
| return ((ManagedQueue) getDestinationManager().getDestination(queueName, true)).listAllMessages(null);
| }
|
This also keeps a single simple API for the client to use and a single point of entry.
what do you think?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101053#4101053
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101053
More information about the jboss-dev-forums
mailing list