Hi everyone!
I'm trying to get a scheduler working in JBoss as 5.
So far, I've created my own MBean (it works) and I created my scheduler like this:
<mbean code="org.jboss.varia.scheduler.Scheduler"
name=":service=Scheduler,name=SchedulableMBeanExample">
<depends>user:service=Print</depends>
<attribute name="StartAtStartup">true</attribute>
<attribute name="SchedulableMBean">user:service=Print</attribute>
<attribute name="SchedulableMBeanMethod">print(java.lang.String)</attribute>
<attribute name="InitialStartDate">NOW</attribute>
<attribute name="SchedulePeriod">10000</attribute>
<attribute name="InitialRepetitions">10</attribute>
<attribute name="FixedRate">true</attribute></mbean>
It works, but the main question is how can I specify the string I want to pass as an argument to my method?
I've searched but the only closer thing I've found is this attribute : "SchedulableArguments" but this works only for the constructor.
Thanks for your help guys.
Laurent.