[jboss-dev-forums] [Design of JBossCache] - Re: Channel creation - mux vs. old style
bstansberry@jboss.com
do-not-reply at jboss.com
Sun Apr 22 22:58:44 EDT 2007
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#4039676
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039676
More information about the jboss-dev-forums
mailing list