2 Replies Latest reply on May 25, 2007 1:59 AM by genman

    property replacement in mbean descriptor files

    georgeisangry

      I have an mbean descriptor file with the following:

      <attribute access="read-write"
       getMethod="getReminderFrequency"
       setMethod="setReminderFrequency">
       <description>blah</description>
       <name>ReminderFrequency</name>
       <type>long</type>
       <descriptors>
       <persistence/>
       <default value="${app.reminderFrequency}" />
       </descriptors>
       </attribute>


      The problem is that the string property replacement is not happening.
      It looks like the JBossXMBean clas is using a default PropertyEditor
      instead of using the StringPropertyReplacer.

      what's the easiest way to get the property replacement to happen in this
      context? I don't really want to write a PropertyEditor for longs.