A little more on why I don't want to support JMX lookup of the JChannelFactory --
besides the fact that in an IOC world, writing lookup code seems bogus.
Doing a JMX lookup presupposes that the MBeanServer is available before the call to
Cache.create(). Otherwise, you can't do the lookup. In an AS 3.2.x or 4.x
environment, that was a safe assumption, as that's the way the ServiceController
worked. But if someone had created their cache programatically, it might have broken.
That is, they could instantiate their cache, call startService() and then register it in
JMX.
In 2.0, the coupling between the JMX wrapper and the Cache lifecycle is weaker.
There's no strong reason to assume JMX registration will occur before create(). Adding
logic to CacheJmxWrapper so it can deal with a situation where create is called first just
adds complexity.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039676#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...