1 Reply Latest reply on Mar 4, 2002 1:41 PM by juha

    setManagedResource prior to setModelMBeanInfo

    squirest


      Implementation tests are blowing up because setManagedResource is being called before setModelMBeanInfo.

      The spec says that setManagedResource:

      Sets the instance of the object against which to execute all operations in this model MBean management interface (metadata and descriptors).

      Which indicates to me that you can't set the resource until you've set the metadata (setModelMBeanInfo).

      Is this a correct assumption?

      Trev

        • 1. Re: setManagedResource prior to setModelMBeanInfo

          I don't think it is at all clear that that part of the spec dictates the order at which these two methods must be called. The only clear requirement I can get from the spec is that both the resource reference and the MBean metadata must be set before the MBean is registered to the server.

          Since it is not explicit in the spec, I think it would be a mistake from a code portability point of view to enforce any order in this case.

          -- Juha