Author: mircea.markus
Date: 2009-05-27 00:59:40 -0400 (Wed, 27 May 2009)
New Revision: 8073
Modified:
core/trunk/src/main/docbook/userguide/en/modules/deployment.xml
Log:
updated doc
Modified: core/trunk/src/main/docbook/userguide/en/modules/deployment.xml
===================================================================
--- core/trunk/src/main/docbook/userguide/en/modules/deployment.xml 2009-05-25 13:22:06
UTC (rev 8072)
+++ core/trunk/src/main/docbook/userguide/en/modules/deployment.xml 2009-05-27 04:59:40
UTC (rev 8073)
@@ -219,8 +219,6 @@
<section id="jmx.registration.programatic">
<title>Programatic Registration</title>
- <section id="jmx.registration.programatic.construct">
- <title>With a Cache instance</title>
<para>
Simplest way to do this is to create your
<literal>Cache</literal> and pass it to the
<literal>JmxRegistrationManager</literal> constructor.
@@ -246,39 +244,7 @@
cache.stop();
]]></programlisting>
- </section>
- <section id="jmx.registration.programatic.cfg">
- <title>With a Configuration instance</title>
- <para>
- Alternatively, build a <literal>Configuration</literal> object
and pass it to the
- <literal>CacheJmxWrapper</literal>. The wrapper will construct
the <literal>Cache</literal> on your
- behalf.
- </para>
-
- <programlisting role="JAVA"><![CDATA[
- Configuration config = buildConfiguration(); // whatever it does
-
- CacheJmxWrapperMBean wrapper = new CacheJmxWrapper(config);
- MBeanServer server = getMBeanServer(); // however you do it
- ObjectName on = new ObjectName("jboss.cache:service=TreeCache");
- server.registerMBean(wrapper, on);
-
- // Call to wrapper.create() will build the Cache if one wasn't injected
- wrapper.create();
- wrapper.start();
-
- // Now that it's built, created and started, get the cache from the wrapper
- Cache cache = wrapper.getCache();
-
- ... use the cache
-
- ... on application shutdown
-
- wrapper.stop();
- wrapper.destroy();
- ]]></programlisting>
- </section>
</section>
<section>