[jbosscache-commits] JBoss Cache SVN: r7518 - core/trunk/src/main/docbook/userguide/en/modules.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon Jan 19 17:48:38 EST 2009


Author: bstansberry at jboss.com
Date: 2009-01-19 17:48:38 -0500 (Mon, 19 Jan 2009)
New Revision: 7518

Modified:
   core/trunk/src/main/docbook/userguide/en/modules/deployment.xml
Log:
[JBCACHE-1467] Correct JBoss Microcontainer usage docs

Modified: core/trunk/src/main/docbook/userguide/en/modules/deployment.xml
===================================================================
--- core/trunk/src/main/docbook/userguide/en/modules/deployment.xml	2009-01-19 19:55:11 UTC (rev 7517)
+++ core/trunk/src/main/docbook/userguide/en/modules/deployment.xml	2009-01-19 22:48:38 UTC (rev 7518)
@@ -90,7 +90,7 @@
       
       <!-- Externally injected services -->  
       <property name="runtimeConfig">
-         <bean name="ExampleCacheRuntimeConfig" class="org.jboss.cache.config.RuntimeConfig">
+         <bean class="org.jboss.cache.config.RuntimeConfig">
             <property name="transactionManager">
                <inject bean="jboss:service=TransactionManager" 
                        property="TransactionManager"/>
@@ -107,7 +107,7 @@
 
       <property name="cacheMode">REPL_SYNC</property>
 
-      <property name="initialStateRetrievalTimeout">15000</property>
+      <property name="stateRetrievalTimeout">15000</property>
 
       <property name="syncReplTimeout">20000</property>
 
@@ -118,7 +118,8 @@
    
    <!-- Factory to build the Cache. -->
    <bean name="DefaultCacheFactory" class="org.jboss.cache.DefaultCacheFactory">      
-      <constructor factoryClass="org.jboss.cache.DefaultCacheFactory" />
+      <constructor factoryClass="org.jboss.cache.DefaultCacheFactory"
+                   factoryMethod="getInstance" />
    </bean>
    
    <!-- The cache itself -->
@@ -127,7 +128,7 @@
       <constructor factoryMethod="createCache">
           <factory bean="DefaultCacheFactory"/>
           <parameter class="org.jboss.cache.config.Configuration"><inject bean="ExampleCacheConfig"/></parameter>
-          <parameter class="boolean">false</false>
+          <parameter class="boolean">false</parameter>
       </constructor>
           
    </bean>
@@ -141,7 +142,10 @@
          <literal>bean</literal>
          element represents an object and is used to create a
          <literal>Configuration</literal>
-         and its <link linkend="configuration.elements">constituent parts</link>.
+         and its <link linkend="configuration.elements">constituent parts</link>
+         The <literal>DefaultCacheFactory</literal> bean constructs the cache, 
+         conceptually doing the same thing as is shown in the 
+         <link linkend="api.create_start">User API</link> chapter.
       </para>
       <para>
          An interesting thing to note in the above example is the use of the
@@ -155,8 +159,8 @@
    <section>
       <title>Automatic binding to JNDI in JBoss AS</title>
       <para>
-         This feature is not available as of the time of this writing, although it will be completed before AS 5.0.0.GA
-         is released.  We will add a wiki page describing how to use it once it becomes available.
+         This feature is not available as of the time of this writing.  We will 
+         add a wiki page describing how to use it once it becomes available.
       </para>
    </section>
 
@@ -302,7 +306,8 @@
    
    <!-- Factory to build the Cache. -->
    <bean name="DefaultCacheFactory" class="org.jboss.cache.DefaultCacheFactory">      
-      <constructor factoryClass="org.jboss.cache.DefaultCacheFactory" />
+      <constructor factoryClass="org.jboss.cache.DefaultCacheFactory"
+                   factoryMethod="getInstance" />
    </bean>
    
    <!-- The cache itself -->
@@ -311,7 +316,7 @@
       <constructor factoryMethod="createnewInstance">
           <factory bean="DefaultCacheFactory"/>
           <parameter><inject bean="ExampleCacheConfig"/></parameter>
-          <parameter>false</false>
+          <parameter>false</parameter>
       </constructor>
           
    </bean>




More information about the jbosscache-commits mailing list