diff --git a/docs/src/docbkx/reference/bootstrap.xml b/docs/src/docbkx/reference/bootstrap.xml index 8ed11e2b..8bea260a 100644 --- a/docs/src/docbkx/reference/bootstrap.xml +++ b/docs/src/docbkx/reference/bootstrap.xml @@ -12,8 +12,102 @@ classes that enable the configuration of distributed caches or regions to support a variety of scenarios with minimal effort. +
+ Using the Spring GemFire Namespace + + To simplify configuration, SGF provides a dedicated namespace for most of its components. However, one can opt to configure the beans + directly through the usual <bean> definition. For more information about XML Schema-based configuration in Spring, see + this appendix in the + Spring Framework reference documentation. + + To use the SGF namespace, one just needs to import it inside the configuration: + + + + + + + + + + + + + + +]]> + + + + + Spring GemFire namespace prefix. Any name can do but through out the reference documentation, the gfe will be used. + + + The namespace URI. + + + The namespace URI location. Note that even though the location points to an external address (which exists and is valid), Spring will resolve + the schema locally as it is included in the Spring GemFire library. + + + Declaration example for the GemFire namespace. Notice the prefix usage. + + + + + Once declared, the namespace elements can be declared simply by appending the aforementioned prefix. Note that is possible to change the default namespace, + for example from <beans> to <gfe>. This is useful for configuration composed mainly of GemFire components as + it avoids declaring the prefix. To achieve this, simply swap the namespace prefix declaration above: + + + + + + + + + + + + + + + +]]> + + + + + The default namespace declaration for this XML file points to the Spring GemFire namespace. + + + The beans namespace prefix declaration. + + + Bean declaration using the <beans> namespace. Notice the prefix. + + + Bean declaration using the <gfe> namespace. Notice the lack of prefix (as the default namespace is used). + + + + + For the remainder of this doc, to improve readability, the XML examples will simply refer to the <gfe> namespace + without the namespace declaration, where possible. +
+
- Configuring the GemFire + <title>Configuring the GemFire <interfacename>Cache</interfacename> In order to use the GemFire Fabric, one needs to either create a new @@ -24,8 +118,32 @@ In its simplest form, a cache can be defined in one line: + + + + + + + + +]]> + + + + + Spring GemFire namespace + + + + + Here, the default-cache will try to connect to an existing cache and, in case one does not exist, create it. Since no additional properties were specified the created cache uses the default