站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Java and JMX Building Manageable Systems

Java and JMX Building Manageable Systems

[ directory ] Previous Section Next Section

4.10 Caveats

4.10.1 Transactionality

If a model MBean implementation is executing in an environment where management operations are transactional, then the model MBean should shield the application from this knowledge. If the application must be aware of the transaction, the application will depend on a certain version of the JMX agent and model MBean to be accessible. The application's investment in the JMX instrumentation is no longer portable and protected.

4.10.2 Remoteness

If the JMX agent is remotable, then the application and/or adapters may be accessing model MBeans that are not co-residing in the same JVM. The model MBean and JMX agent must be implemented so that the applications and adapters are not aware that the model MBean is local or remote. In other words, the model MBean must support location transparency. The JMX agent does not have to provide for remotabilty for both the applications and the adapters; it may be remotable to just one of these.

    [ directory ] Previous Section Next Section