A management interface for managing flow definition registries at runtime.
Provides the ability to query the size and state of the registry, as well as
refresh registered flow definitions at runtime.
Flow registries that implement this interface may be exposed for management
over the JMX protocol. The following is an example of using Spring's JMX
MBeanExporter to export a flow registry to an MBeanServer:
<!-- Creates the registry of flow definitions for this application -->
<bean name="flowRegistry" class="org.springframework.webflow...XmlFlowRegistryFactoryBean">
<property name="locations" value="/WEB-INF/flow1.xml"/>
</bean>
<!-- Automatically exports the created flowRegistry as an MBean -->
<bean id="mbeanExporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="beans">
<map>
<entry key="spring-webflow:name=flowRegistry" value-ref="flowRegistry"/>
</map>
</property>
<property name="assembler">
<bean class="org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler">
<property name="managedInterfaces"
value="org.springframework.webflow.definition.registry.FlowDefinitionRegistryMBean"/>
</bean>
</property>
</bean>
With the above configuration, you may then use any JMX client (such as Sun's
jConsole which ships with JDK 1.5) to refresh flow definitions at runtime.
author: Keith Donald |