0 Replies Latest reply on Feb 20, 2006 1:36 PM by greenbean

    JMX ModelBean Persistence With Spring Java 5 Annotations

    greenbean

      Spring provides annotations to expose and persist mbeans. The persistence does not seem to work when using this method. Is this supported by jboss?

      @ManagedResource(objectName = "jmx:bean=TestBean",
      description = "Test bean",
      log = true,
      logFile = "jmx.log",
      currencyTimeLimit = 0,
      persistPolicy = "OnUpdate",
      persistName = "testBean")

      @ManagedAttribute(description = "Get the value",
      currencyTimeLimit = 0,
      defaultValue = "test",
      persistPolicy = "OnUpdate")
      public String getValue() {
      return value;
      }

      @ManagedAttribute(description = "Set the value",
      currencyTimeLimit = 0,
      defaultValue = "test",
      persistPolicy = "OnUpdate")
      public void setValue(String value) {
      this.value = value;
      }