1 Reply Latest reply: Nov 1, 2010 11:42 AM by 809770 RSS

    dynamic mbean and accessing a properties file...

    843798
      Hi Guys,

      I am using the example used in http://weblogs.java.net/blog/emcmanus/archive/2006/11/a_real_example.html which is a dynamic bean used to access a properties file and modify it...

      I have come up with the following jboss-service.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
      <mbean code="x.y.z.Startup" name="ZPortal:service=Startup">
      </mbean>
      <mbean code="x.y.z.PropertyManager" name="ZPortal:service=PropertyManager">
           <attribute name="propertyFileName">C:\\temp\\params.txt</attribute>
      </mbean>
      </server>

      The 'StartUp' bean is a straightforward mbean which is working fine...I have added the PropertyManager dynamic bean from the the above example with one of the attributes as propertyFileName...

      However I get the following error:

      org.jboss.deployment.DeploymentException: x.y.z.PropertyManager.<init>(); - nested throwable: (java.lang.NoSuchMethodException: x.y.z.PropertyManager.<init>())

      Am i missing something?

      Thanks