PDA

View Full Version : Control Spring Beans with JMX



blackhacker
Jan 25th, 2008, 05:01 AM
Hello,

I´ve a timer bean configured with spring:



<bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryB ean">
<property name="scheduledTimerTasks">
<list>
<ref bean="fetcherTask" />
</list>
</property>
</bean>

<bean id="fetcherTask" class="org.springframework.scheduling.timer.ScheduledTime rTask">
<property name="delay" value="1" />
<property name="period" value="60000" />
<property name="timerTask" ref="messageFetcher" />
</bean>



Now I would like to change the period time through JMX. It is possible to access the Spring beans directly with JMX?

Cheers,

Thilko

jonnio
Jan 25th, 2008, 11:34 AM
http://static.springframework.org/spring/docs/2.0.x/reference/jmx.html