"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...