Author: manik.surtani(a)jboss.com
Date: 2008-01-31 11:36:51 -0500 (Thu, 31 Jan 2008)
New Revision: 5282
Added:
core/trunk/src/main/docbook/images/ClusteredCacheLoader.doc
core/trunk/src/main/docbook/images/ClusteredCacheLoader.png
core/trunk/src/main/docbook/images/logo.gif
Modified:
core/trunk/src/main/docbook/faq/en/master.xml
core/trunk/src/main/docbook/tutorial/en/master.xml
core/trunk/src/main/docbook/userguide/en/master.xml
Log:
Updated
Modified: core/trunk/src/main/docbook/faq/en/master.xml
===================================================================
--- core/trunk/src/main/docbook/faq/en/master.xml 2008-01-31 11:52:54 UTC (rev 5281)
+++ core/trunk/src/main/docbook/faq/en/master.xml 2008-01-31 16:36:51 UTC (rev 5282)
@@ -53,6 +53,15 @@
document pertaining to PojoCache specifics.
</para>
</abstract>
+
+ <!-- copyright info -->
+ <copyright>
+ <year>2005</year>
+ <year>2006</year>
+ <year>2007</year>
+ <year>2008</year>
+ <holder>JBoss, a division of Red Hat Inc.</holder>
+ </copyright>
</bookinfo>
@@ -336,47 +345,48 @@
JBoss MBean. Here is a code snippet:
</para>
- <programlisting>
- import org.jboss.mx.util.MBeanServerLocator;
- import org.jboss.mx.util.MBeanProxyExt;
- import org.jboss.cache.TreeCacheMBean;
- import javax.management.MBeanServer;
- ...
+ <programlisting><![CDATA[
- MBeanServer server;
- TreeCacheMBean cache;
+import org.jboss.mx.util.MBeanServerLocator;
+import org.jboss.mx.util.MBeanProxyExt;
+import org.jboss.cache.TreeCacheMBean;
+import javax.management.MBeanServer;
+...
- public init() throws Exception
- {
- try
- {
- server = MBeanServerLocator.locateJBoss();
- cache = (TreeCacheMBean) MBeanProxyExt.create(TreeCacheMBean.class,
"jboss.cache:service=TreeCache",
- server);
- }
- catch (Exception ex)
- {
- // handle exception
- }
- }
+MBeanServer server;
+TreeCacheMBean cache;
- public void myBusinessMethod()
- {
- Object value = cache.get("/my/node", "myKey");
+public init() throws Exception
+{
+ try
+ {
+ server = MBeanServerLocator.locateJBoss();
+ cache = (TreeCacheMBean) MBeanProxyExt.create(TreeCacheMBean.class,
+ "jboss.cache:service=TreeCache", server);
+ }
+ catch (Exception ex)
+ {
+ // handle exception
+ }
+}
- HashMap stuff = new HashMap();
- stuff.put("key1", "value1");
- stuff.put("key2", "value2");
- stuff.put("key3", "value3");
+public void myBusinessMethod()
+{
+ Object value = cache.get("/my/node", "myKey");
- cache.put("/my/new/node", stuff);
+ HashMap stuff = new HashMap();
+ stuff.put("key1", "value1");
+ stuff.put("key2", "value2");
+ stuff.put("key3", "value3");
- cache.remove("/my/node");
+ cache.put("/my/new/node", stuff);
- ...
- }
+ cache.remove("/my/node");
- </programlisting>
+ ...
+}
+
+ ]]></programlisting>
</answer>
</qandaentry>
Added: core/trunk/src/main/docbook/images/ClusteredCacheLoader.doc
===================================================================
(Binary files differ)
Property changes on: core/trunk/src/main/docbook/images/ClusteredCacheLoader.doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: core/trunk/src/main/docbook/images/ClusteredCacheLoader.png
===================================================================
(Binary files differ)
Property changes on: core/trunk/src/main/docbook/images/ClusteredCacheLoader.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: core/trunk/src/main/docbook/images/logo.gif
===================================================================
(Binary files differ)
Property changes on: core/trunk/src/main/docbook/images/logo.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: core/trunk/src/main/docbook/tutorial/en/master.xml
===================================================================
--- core/trunk/src/main/docbook/tutorial/en/master.xml 2008-01-31 11:52:54 UTC (rev 5281)
+++ core/trunk/src/main/docbook/tutorial/en/master.xml 2008-01-31 16:36:51 UTC (rev 5282)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<article lang="en">
<articleinfo>
- <title>JBoss Cache core Cache Tutorial</title>
+ <title>JBoss Cache Core Edition Tutorial</title>
<!-- Release version and date -->
<releaseinfo>Release 2.1.0 Alegrias</releaseinfo>
<pubdate>March 2008</pubdate>
@@ -11,6 +11,16 @@
<surname>Surtani</surname>
<email>manik(a)jboss.org</email>
</author>
+
+ <!-- copyright info -->
+ <copyright>
+ <year>2005</year>
+ <year>2006</year>
+ <year>2007</year>
+ <year>2008</year>
+ <holder>JBoss, a division of Red Hat Inc.</holder>
+ </copyright>
+
</articleinfo>
<section>
Modified: core/trunk/src/main/docbook/userguide/en/master.xml
===================================================================
--- core/trunk/src/main/docbook/userguide/en/master.xml 2008-01-31 11:52:54 UTC (rev
5281)
+++ core/trunk/src/main/docbook/userguide/en/master.xml 2008-01-31 16:36:51 UTC (rev
5282)
@@ -74,6 +74,7 @@
<year>2005</year>
<year>2006</year>
<year>2007</year>
+ <year>2008</year>
<holder>JBoss, a division of Red Hat Inc.</holder>
</copyright>
Show replies by date