Announcement Announcement Module
Collapse
No announcement yet.
modifying application behavior using jmx Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • modifying application behavior using jmx

    Good Morning everybody,

    I am prototyping an application where I am trying to control the a scheduler using JMX. As tutorial guides I put something like {snippet 1} and my scheduler looks like snippet 2.

    I deploy it on jboss 5. It works beautifully. I can see it on JMX console.
    However, if I change the value of period it really does not effect the application.
    am I missing something?
    Any comments will be highly appreciated.
    Thank you.
    rn


    snippet 1
    Code:
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
        <property name="beans">
          <map>
            <entry key="bean:name=ScheduledEmailTask" value-ref="scheduledEmailTask"/>
            
          </map>
        </property>
      </bean>
    snippet 2:
    Code:
    <bean id="scheduledEmailTask" class="org.springframework.scheduling.timer.ScheduledTimerTask" >
    <property name="timerTask" ref="deceEmailTask"></property>
    <property name="period" value="360000"></property>
    </bean>
Working...
X