3 Replies Latest reply on Jan 4, 2003 9:21 AM by Sanne de

    Input angle

    Sanne de Novice

      Hi Bela,

      I've read your todo file.
      Here's a small contribution to point one.
      It's an example of how to generate a standard MBean interface for a class with XDoclet. It's a bogus class since there is no Cache implementation yet.

      I was wondering why you would need a dynamic MBean for the cache: the fun of a cache is that it has a standard (immutable)interface?

      Are there any particular areas where you would like input (I'm not an expert but like sorting things out).

      Sanne

        • 1. Re: Input angle
          Sanne de Novice

          Just read in the Juha JMX book that the Jboss Model MBean is extended with configurable interceptors. Doesn't say anyhting about Standard MBean's having this option. That would make the case for model MBeans.

          • 2. Re: Input angle
            Bela Ban Master

            > It's a bogus
            > class since there is no Cache implementation yet.

            Thanks ! Now there is an skeleton implementation (CacheImpl). But what I'd have to do is to copy all the comments from CacheImpl to CacheImplMBean, which is a drag...


            > I was wondering why you would need a dynamic MBean
            > for the cache: the fun of a cache is that it has a
            > standard (immutable)interface?

            What I had in mind was to implement the Cache interface, but the attributes of the specific implementation should not be hard-coded into any interface. Currently they are hard-coded in CacheImplMBean. The dynamic MBean should use reflection to discover and dynamically expose all getters and setters for a given Cache implementation. That way I woulnd't have to specify stuff like cache modes in CacheImplMBean.

            ModelMBeans almost do the job, but they require an XML file, defining all attributes (if I'm correct).

            So, if you're interested, I need an MBean which
            - is configurable with any given Cache implementation X
            - extends Cache and
            - dynamically exposes all getters and setters of X

            Any takers ? This would be CacheImplMBean.

            We might rename some classes anyway, e.g.
            - Cache --> JCache or ICache
            - CacheImpl --> Cache
            - CacheImplMBean CacheMBean



            • 3. Re: Input angle
              Sanne de Novice

              Looked briefly at open mbeans, but that doesn't seem to be what we want. Let's start with the Model MBean.