Author: hiranya
Date: Mon Jan 24 12:28:42 2011
New Revision: 1062750
URL: http://svn.apache.org/viewvc?rev=1062750&view=rev
Log:
Config lang guide updated
Modified:
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
Modified:
synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
URL:
http://svn.apache.org/viewvc/synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml?rev=1062750&r1=1062749&r2=1062750&view=diff
==============================================================================
--- synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
(original)
+++ synapse/trunk/scratch/hiranya/website/src/site/xdoc/userguide/config.xml
Mon Jan 24 12:28:42 2011
@@ -61,7 +61,7 @@
All the functional components of the Synapse configuration are
configured through
XML files. The Synapse configuration language governs the XML
syntax used to define
and configure different types of components. This
configuration language is now
- available as a XML schema.
+ available as a <a
href="http://synapse.apache.org/ns/2010/04/configuration/synapse_config.xsd">XML
schema</a>.
</p>
<p>
Typically the Synapse ESB is deployed between an actual client
and a back-end service
@@ -275,7 +275,17 @@
'definitions' element. A configuration defined in the
synapse.xml file looks like
this at the high level.
</p>
- <div class="xmlConf"></div>
+ <div class="xmlConf"><definitions>
+ <<a href="#registry">registry</a>
provider="string">...</registry>?
+ <<a href="#localEntry">localEntry</a>
key="string">...</localEntry>?
+ <<a href="#sequence">sequence</a> name="string">...</sequence>?
+ <<a href="#endpoint">endpoint</a> name="string">...</endpoint>?
+ <<a href="#proxy">proxy</a> name="string" ...>...</proxy>?
+ <<a href="#task">task</a> name="string" ...>...</task>?
+ <<a href="#eventsource">eventSource</a> name="string"
...>...</eventSource>?
+ <<a href="#executor">executor</a> name="string"
...>...</executor>?
+ <<a href="#store">messageStore</a> name="string"
...>...</messageStore>?
+ </definitions></div>
<p>
The registry adapter definition is defined under the
<registry> element. Similarly
<endpoint>, <sequence>, <proxy>,
<localEntry>, <eventSource
@@ -291,5 +301,41 @@
types of components in the Synapse configuration.
</p>
</section>
+ <section name="Registry" id="registry">
+ <p>
+ The <registry> element is used to define the remote
registry used by the
+ Synapse runtime. The registry provider specifies an
implementation class for the
+ registry being used, and optionally a number of configuration
parameters as may be
+ required by the particular registry implementation. An outline
configuration is given
+ below.
+ </p>
+ <div class="xmlConf"><registry provider="string"/>
+ <parameter name="string">text | xml</parameter>*
+</registry></div>
+ <p>
+ Registry entries loaded from a remote registry may be cached
as governed by the
+ registry, and reloaded after the cache periods expires if a
newer version is found.
+ Hence it is possible to define configuration elements such as
(dynamic) sequences and
+ endpoints, as well as resources such as XSLT's, scripts or
XSDs in the registry, and
+ update the configuration as these are allowed to dynamically
change over time.
+ </p>
+ <p>
+ Synapse ships with a built-in URL based registry
implementation called the
+ 'SimpleURLRegistry' and this can be configured as follows:
+ </p>
+ <div class="xmlConf"><registry
provider="org.apache.synapse.registry.url.SimpleURLRegistry">
+ <parameter
name="root">file:./repository/conf/sample/resources/</parameter>
+ <parameter name="cachableDuration">15000</parameter>
+</registry></div>
+ <p>
+ The 'root' parameter specifies the root URL of the registry
for loaded resources. The
+ SimpleURLRegistry keys are path fragments, that when combined
with the root prefix
+ would form the full URL for the referenced resource. The
'cachableDuration' parameter
+ specifies the number of milliseconds for which resources
loaded from the registry
+ should be cached. More advanced registry implementations
allows different cachable
+ durations to be specified for different resources, or mark
some resources as never
+ expires. (e.g. Check the WSO2 ESB implementation based on
Apache Synapse)
+ </p>
+ </section>
</body>
</document>
\ No newline at end of file