Dashboard > JCaptcha > ... > How to > Managing JCaptcha with JMX
JCaptcha
Managing JCaptcha with JMX
Added by Antoine Véret , last edited by Antoine Véret on Jun 29, 2007  (view change)
Labels: 
jmx

JMX allow remote controle on components, in Spring it is easy to declare which component have to be exposed in JMX.

The following sample shows how to control a CaptchaService and a ContainerManager:

<bean id="imageExporter" class="org.springframework.jmx.export.MBeanExporter">
	<property name="beans">
		<map>
			<entry key="bean:name=imageCaptchaService">
				<ref local="imageCaptchaService"/>
			</entry>
			<entry key="bean:name=imageContainerManager">
				<ref local="imageContainerManager"/>
			</entry>
		</map>
	</property>
</bean>

Thanks to a JMX interface, like the one provide in JBoss or MC4J, you can manage the captcha buffering system and your Captcha Service very easily. Every operation available is define in ContainerManager and Captcha Service interfaces. See the java doc for BufferedEngineContainerManager and AbstractManageableCaptchaService.

Powered by a free Atlassian Confluence Open Source Project License granted to JCAPTCHA. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators