<bean id="exporter3" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false"> <property name="beans"> <map><entry key="bean:name=Global" value-ref="Global"/></map> </property> </bean>
crazy78 wrote:"Global" has no meaning in Java. And final classes can be instantiated. It sounds like you're talking about a class full of static methods.
Global class is a final Class it is not be instantiated.
Static variables should be accessible because I want to monitor somethingThat answers why you want them to be accessible (and does a poor job of it at that). It does not answer the question he asked, which is why you think they are accessible.