An example that invokes the listThreadDump op on the jboss.system:type=ServerInfo mbean:

<server>
   <mbean code="org.jboss.varia.scheduler.Scheduler"
      name="jboss.test:service=Scheduler,name=SchedulableMBeanExample">
      <attribute name="StartAtStartup">true</attribute>
      <attribute
         name="SchedulableMBean">jboss.system:type=ServerInfo</attribute>
      <attribute name="SchedulableMBeanMethod">listThreadDump()</attribute>
      <attribute name="InitialStartDate">NOW</attribute>
      <attribute name="SchedulePeriod">10000</attribute>
      <attribute name="InitialRepetitions">10</attribute>
   </mbean>
</server>

--
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx

[EMAIL PROTECTED] wrote:

Hi all,

Is it possible to call a call a MBean method using a scheduler service?
And if so, where can I find an example to do this? I have looked into the JBoss (subscription) documentation.
In chapter 10 I only find an example which uses a class which implements a Schedulable interface....


Thanks,

Harm de Laat
Informatiefabriek
The Netherlands



------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to