You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by as...@apache.org on 2006/05/23 11:06:29 UTC

svn commit: r408856 - in /incubator/synapse/trunk/java: modules/core/src/org/apache/synapse/config/ xdocs/

Author: asankha
Date: Tue May 23 02:06:28 2006
New Revision: 408856

URL: http://svn.apache.org/viewvc?rev=408856&view=rev
Log:
Update Xdocs for M2

Added:
    incubator/synapse/trunk/java/xdocs/extending_synapse.html
Removed:
    incubator/synapse/trunk/java/xdocs/extension_processor_writing.html
Modified:
    incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/SynapseConfigurationBuilder.java
    incubator/synapse/trunk/java/xdocs/download.html
    incubator/synapse/trunk/java/xdocs/download.xml
    incubator/synapse/trunk/java/xdocs/getInvolved.html
    incubator/synapse/trunk/java/xdocs/index.xml
    incubator/synapse/trunk/java/xdocs/navigation.xml
    incubator/synapse/trunk/java/xdocs/userguide.html

Modified: incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/SynapseConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/SynapseConfigurationBuilder.java?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/SynapseConfigurationBuilder.java (original)
+++ incubator/synapse/trunk/java/modules/core/src/org/apache/synapse/config/SynapseConfigurationBuilder.java Tue May 23 02:06:28 2006
@@ -57,13 +57,6 @@
      */
     public static SynapseConfiguration getConfiguration(String configFile) {
 
-        // Has a system property synapse.xml overwritten the synapse config location?
-        String tConfigFile = System.getProperty(SYNAPSE_XML);
-        if (tConfigFile != null) {
-            log.info("A system property '" + SYNAPSE_XML + "' overrides the synapse XML file as : " + tConfigFile);
-            configFile = tConfigFile;
-        }
-
         // build the Synapse configuration parsing the XML config file
         XMLConfigurationBuilder xmlBuilder = null;
         try {

Modified: incubator/synapse/trunk/java/xdocs/download.html
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/download.html?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/xdocs/download.html (original)
+++ incubator/synapse/trunk/java/xdocs/download.html Tue May 23 02:06:28 2006
@@ -4,7 +4,7 @@
 <body>
 <h2>Releases</h2>
 
-<p>Synapse is still under active development and Synapse development community is proud to release Milestone version #1
+<p>Synapse is still under active development and Synapse development community is proud to release Milestone version #2
     as a big step towards <code>1.0</code> release.
 </p>
 <p></p>
@@ -18,12 +18,20 @@
             <td width="119" align="center">Description</td>
         </tr>
         <tr>
-            <td align="center" valign="middle"><a name="M2"></a>M1</td>
+            <td align="center" valign="middle"><a name="M1"></a>M1</td>
             <td align="center">Milestone</td>
             <td>Source Distribution zip<a href="" title="">zip</a><br>
                 Binary Distribution zip<a href="" title="">zip</a></td>
             <td>xx-xx-xxxx</td>
             <td>Milestone Release #1</td>
+        </tr>
+        <tr>
+            <td align="center" valign="middle"><a name="M2"></a>M2</td>
+            <td align="center">Milestone</td>
+            <td>Source Distribution zip<a href="" title="">zip</a><br>
+                Binary Distribution zip<a href="" title="">zip</a></td>
+            <td>xx-xx-xxxx</td>
+            <td>Milestone Release #2</td>
         </tr>
     </tbody>
 </table>

Modified: incubator/synapse/trunk/java/xdocs/download.xml
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/download.xml?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/xdocs/download.xml (original)
+++ incubator/synapse/trunk/java/xdocs/download.xml Tue May 23 02:06:28 2006
@@ -25,28 +25,37 @@
 
   <body>
     <section name="Releases">
-      <p>Synapse is still under active development and Synapse development community is proud to release the Milestone 1 release</p>
+      <p>Synapse is still under active development and Synapse development community is proud to release the Milestone 2 release</p>
       <table border="1" style="border-collapse: collapse" width="93%" id="table1">
 		<thead>
-		<tr>
-			<td width="41" align="center">Name</td>
-            <td width="353" align="center">Type</td>
-            <td width="288" align="center">Distribution</td>
-            <td width="69" align="center">Date</td>
-            <td width="119" align="center">Description</td>
+		<tr>
+			<td width="41" align="center">Name</td>
+            <td width="353" align="center">Type</td>
+            <td width="288" align="center">Distribution</td>
+            <td width="69" align="center">Date</td>
+            <td width="119" align="center">Description</td>
         </tr>
-        </thead>
-		<tbody>
-        <tr>
-            <td align="center" valign="middle">M1</td>
-            <td align="center">Milestone</td>
-            <td><a href="http://www.apache.org/dist/ws/synapse/M1/Synapse-Incubating-M1-src.zip" title="">Source Distribution zip</a><br/>
-                <a href="http://www.apache.org/dist/ws/synapse/M1/Synapse-Incubating-M1-bin.zip" title="">Binary Distribution zip</a></td>
-            <td>23-Jan-2006</td>
-            <td>Milestone 1</td>
-        </tr>
-		</tbody>
-	</table>
+        </thead>
+		<tbody>
+        <tr>
+            <td align="center" valign="middle">M1</td>
+            <td align="center">Milestone</td>
+            <td><a href="http://www.apache.org/dist/ws/synapse/M1/Synapse-Incubating-M1-src.zip" title="">Source Distribution zip</a><br/>
+                <a href="http://www.apache.org/dist/ws/synapse/M1/Synapse-Incubating-M1-bin.zip" title="">Binary Distribution zip</a></td>
+            <td>23-Jan-2006</td>
+            <td>Milestone 1</td>
+        </tr>
+        <tr>
+            <td align="center" valign="middle">M2</td>
+            <td align="center">Milestone</td>
+            <td><a href="http://www.apache.org/dist/ws/synapse/M2/Synapse-Incubating-M2-src.zip" title="">Source Distribution zip</a><br/>
+                <a href="http://www.apache.org/dist/ws/synapse/M2/Synapse-Incubating-M2-bin.zip" title="">Binary Distribution zip</a><br/>
+                <a href="http://www.apache.org/dist/ws/synapse/M2/Extensions-Synapse-M2-bin.zip" title="">Extensions Distribution zip</a></td>
+            <td>23-May-2006</td>
+            <td>Milestone 2</td>
+        </tr>
+		</tbody>
+	</table>
 
     </section>
   </body>

Added: incubator/synapse/trunk/java/xdocs/extending_synapse.html
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/extending_synapse.html?rev=408856&view=auto
==============================================================================
--- incubator/synapse/trunk/java/xdocs/extending_synapse.html (added)
+++ incubator/synapse/trunk/java/xdocs/extending_synapse.html Tue May 23 02:06:28 2006
@@ -0,0 +1,261 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <meta content="text/html; charset=ISO-8859-1"
+ http-equiv="content-type">
+  <title>Extending Synapse</title>
+</head>
+<body>
+<h1>Extending Synapse<br>
+</h1>
+<br>
+<h2>Writing custom Mediator implementations</h2>
+<p>The primary interface of the Synapse API is the MessageContext
+interface
+defined below. This essentially defines the per-message context passed
+through the chain of mediators, for each and every message received and
+processed by
+Synapse. Each message instance is wrapped within a MessageContext
+instance, and the message context is set with the references to the
+SynapseConfiguration and SynapseEnvironments to be used. The
+SynapseConfiguration holds the global configuration model that defines
+message
+mediation rules and common definitions to be used, while the
+environment gives
+access to the underlying SOAP implementation used.
+A typical mediator would need to manipulate the MessageContext by
+referring to the SynapseConfiguration. However it is strongly
+recommended that
+the SynapseConfiguration should not be updated by mediator instances as
+it is shared by all messages, and may be updated by Synapse
+administration or configuration modules.
+Mediator instances may store custom named properties into the
+MessageContext
+for later retrieval by successive mediators.<br>
+</p>
+<h4>MessageContext Interface</h4>
+<p></p>
+<pre>package org.apache.synapse;<br><br>import ...<br><br>public interface <span
+ style="font-weight: bold;">MessageContext </span>{<br><br>    /**<br>     * Get a reference to the current SynapseConfiguration<br>     *<br>     * @return the current synapse configuration<br>     */<br>    public SynapseConfiguration getConfiguration();<br><br>    /**<br>     * Set or replace the Synapse Configuration instance to be used. May be used to<br>     * programatically change the configuration at runtime etc.<br>     *<br>     * @param cfg The new synapse configuration instance<br>     */<br>    public void setConfiguration(SynapseConfiguration cfg);<br><br>    /**<br>     * Returns a reference to the host Synapse Environment<br>     * @return the Synapse Environment<br>     */<br>    public SynapseEnvironment getEnvironment();<br><br>    /**<br>     * Sets the SynapseEnvironment reference to this context<br>     * @param se the reference to the Synapse Environment<br>     */<br>    public void setEnvironment(SynapseEnvironment se);<br><br>    /**<br>     * Get 
 the value of a custom (local) property set on the message instance<br>     * @param key key to look up property<br>     * @return value for the given key<br>     */<br>    public Object getProperty(String key);<br><br>    /**<br>     * Set a custom (local) property with the given name on the message instance<br>     * @param key key to be used<br>     * @param value value to be saved<br>     */<br>    public void setProperty(String key, Object value);<br><br>    /**<br>     * Returns the Set of keys over the properties on this message context<br>     * @return a Set of keys over message properties<br>     */<br>    public Set getPropertyKeySet();<br><br>    /**<br>     * Get the SOAP envelope of this message<br>     * @return the SOAP envelope of the message<br>     */<br>    public SOAPEnvelope getEnvelope();<br><br>    /**<br>     * Sets the given envelope as the current SOAPEnvelope for this message<br>     * @param envelope the envelope to be set<br>     * @throws org.ap
 ache.axis2.AxisFault on exception<br>     */<br>    public void setEnvelope(SOAPEnvelope envelope) throws AxisFault;<br><br>    /**<br>     * SOAP message related getters and setters<br>     */<br>    public ....get/set()...<br><br>}<br></pre>
+<p>The MessageContext interface is based on the Axis2 <a>MessageContext</a>
+interface, and uses the Axis2 <a>EndpointReference</a> and
+SOAPEnvelope
+classes/interfaces.</p>
+<p>The purpose of this interface is to capture a message as it flows
+through the system. As you will see the messages are represented using
+the SOAP infoset. Binary messages can be embedded in the Envelope using
+the MTOM support built into Axis2's AXIOM object model.</p>
+<h4>Mediator interface</h4>
+<p>The second key interface for mediator writers is the Mediator
+interface:</p>
+<pre>package org.apache.synapse.api;<br><br>import org.apache.synapse.MessageContext;<br><br>/**<br> * All Synapse mediators must implement this Mediator interface. As a message passes<br> * through the synapse system, each mediator's mediate() method is invoked in the<br> * sequence/order defined in the SynapseConfiguration.<br> */<br>public interface <span
+ style="font-weight: bold;">Mediator </span>{<br><br>    /**<br>     * Invokes the mediator passing the current message for mediation. Each<br>     * mediator performs its mediation action, and returns true if mediation<br>     * should continue, or false if further mediation should be aborted.<br>     *<br>     * @param synCtx the current message for mediation<br>     * @return true if further mediation should continue<br>     */<br>    public boolean mediate(MessageContext synCtx);<br><br>    /**<br>     * This is used for debugging purposes and exposes the type of the current<br>     * mediator for logging and debugging purposes<br>     * @return a String representation of the mediator type<br>     */<br>    public String getType();<br>}</pre>
+<p>A mediator can read and/or modify the <a>SynapseMessage</a> in any
+suitable
+manner - adjusting the routing headers or changing the message body. If
+the mediate() method
+returns false, it signals to the Synapse processing model to stop
+further processing of the message. For example, if the mediator is a
+security agent it
+may decide that this message is dangerous and should not be processed
+further. This is generally the exception as mediators are usually
+designed to co-operate to process the message onwards.<br>
+<br>
+</p>
+<h3>Leaf and Node Mediators, List mediators and Filter mediators<br>
+</h3>
+Mediators may be Node mediators (i.e. these contain sub mediators) or
+Leaf mediators (mediators that does not hold any sub mediators). A Node
+mediator&nbsp; must implement the org.apache.synapse.api.ListMediator
+interface listed below, or extend from the
+org.apache.synapse.mediators.AbstractListMediator.<br>
+<h4>The ListMediator interface<br>
+</h4>
+package org.apache.synapse.api;<br>
+<br>
+import java.util.List;<br>
+<br>
+/**<br>
+&nbsp;* The List mediator executes a given sequence/list of child
+mediators<br>
+&nbsp;*/<br>
+public interface ListMediator extends Mediator {<br>
+<br>
+&nbsp;&nbsp;&nbsp; /**<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * Appends the specified mediator to the end of
+this mediator's (children) list<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @param m the mediator to be added<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @return true (as per the general contract of
+the Collection.add method)<br>
+&nbsp;&nbsp;&nbsp;&nbsp; */<br>
+&nbsp;&nbsp;&nbsp; public boolean addChild(Mediator m);<br>
+<br>
+&nbsp;&nbsp;&nbsp; /**<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * Appends all of the mediators in the
+specified collection to the end of this mediator's (children)<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * list, in the order that they are returned by
+the specified collection's iterator<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @param c the list of mediators to be added<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @return true if this list changed as a
+result of the call<br>
+&nbsp;&nbsp;&nbsp;&nbsp; */<br>
+&nbsp;&nbsp;&nbsp; public boolean addAll(List c);<br>
+<br>
+&nbsp;&nbsp;&nbsp; /**<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * Returns the mediator at the specified
+position<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @param pos index of mediator to return<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @return the mediator at the specified
+position in this list<br>
+&nbsp;&nbsp;&nbsp;&nbsp; */<br>
+&nbsp;&nbsp;&nbsp; public Mediator getChild(int pos);<br>
+<br>
+&nbsp;&nbsp;&nbsp; /**<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * Removes the first occurrence in this list of
+the specified mediator<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @param m mediator to be removed from this
+list, if present<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @return true if this list contained the
+specified mediator<br>
+&nbsp;&nbsp;&nbsp;&nbsp; */<br>
+&nbsp;&nbsp;&nbsp; public boolean removeChild(Mediator m);<br>
+<br>
+&nbsp;&nbsp;&nbsp; /**<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * Removes the mediator at the specified
+position in this list<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @param pos the index of the mediator to
+remove<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @return the mediator previously at the
+specified position<br>
+&nbsp;&nbsp;&nbsp;&nbsp; */<br>
+&nbsp;&nbsp;&nbsp; public Mediator removeChild(int pos);<br>
+<br>
+&nbsp;&nbsp;&nbsp; /**<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * Return the list of mediators of this List
+mediator instance<br>
+&nbsp;&nbsp;&nbsp;&nbsp; * @return the child/sub mediator list<br>
+&nbsp;&nbsp;&nbsp;&nbsp; */<br>
+&nbsp;&nbsp;&nbsp; public List getList();<br>
+}<br>
+<br>
+A ListMediator implementation should call super.mediate(synCtx) to
+process its sub mediator sequence. A FilterMediator is a ListMediator
+which executes its sequence of sub mediators on successful outcome of a
+test condition. Mediator instance which performs filtering should
+implement the FilterMediator interface.<br>
+<br>
+<h4>FilterMediator interface</h4>
+<pre>package org.apache.synapse.api;<br><br>import org.apache.synapse.MessageContext;<br><br>/**<br> * The filter mediator is a list mediator, which executes the given (sub) list of mediators<br> * if the specified condition is satisfied<br> *<br> * @see FilterMediator#test(org.apache.synapse.MessageContext)<br> */<br>public interface <span
+ style="font-weight: bold;">FilterMediator </span>extends ListMediator {<br><br>    /**<br>     * Should return true if the sub/child mediators should execute. i.e. if the filter<br>     * condition is satisfied<br>     * @param synCtx<br>     * @return true if the configured filter condition evaluates to true<br>     */<br>    public boolean test(MessageContext synCtx);<br>}<br></pre>
+<h2>Writing custom Configuration implementations for mediators<br>
+</h2>
+You may write your own custom configurator for the Mediator
+implementation you write without relying on the Class mediator or
+Spring
+extension for its initialization. You could thus write a
+MediatorFactory implementation which defines how to digest a custom
+XML configuration element to be used to create and configure the custom
+mediator instance. The custom
+MediatorFactory implementation and the mediator class must be bundled
+in a JAR file conforming to the J2SE Service Provider model (See the
+description for Extensions below for more details and examples) and
+placed into the SYNAPSE_HOME/lib folder, so that the Synapse runtime
+could find and load the definition.
+Essentially this means that a custom JAR file must bundle your class
+implementing the Mediator interface, and the MediatorFactory
+implementation class and contain a text file by the name
+"org.apache.synapse.config.xml.MediatorFactory" which will contain the
+fully qualified name(s) of your MediatorFactory implementation
+class(es). You should also place any dependency JARs into the same lib
+folder so that the correct classpath references could be made. <br>
+<br>
+The
+MediatorFactory interface listing is given below, which you should
+implement, and its getTagQName()
+method must define the fully qualified element of interest for custom
+configuration. The Synapse initialization will call back to this
+MediatorFactory
+instance through the
+createMediator(OMElement elem) method passing in this XML element, so
+that an instance of the mediator could be created utilizing the custom
+XML specification and returned.
+See the ValidateMediator and the ValidateMediatorFactory classes under
+modules/extensions in the Synapse source distribution for examples.<br>
+<br>
+<h4>The MediatorFactory interface</h4>
+<pre>package org.apache.synapse.config.xml;<br><br>import ...<br><br>/**<br> * A mediator factory capable of creating an instance of a mediator through a given<br> * XML should implement this interface<br> */<br>public interface MediatorFactory {<br>    /**<br>     * Creates an instance of the mediator using the OMElement<br>     * @param elem<br>     * @return the created mediator<br>     */<br>    public Mediator createMediator(OMElement elem);<br><br>    /**<br>     * The QName of this mediator element in the XML config<br>     * @return QName of the mediator element<br>     */<br>    public QName getTagQName();<br>}<br></pre>
+<h2>Writing custom Configuration implementations for Configuration
+extensions</h2>
+Mediators could be configured in multiple ways as Synapse, i.e.
+Either through an XML configuration file, or programatically. If
+Synapse
+is initialized with a Synapse XML configuration which is the default,
+and you want to create a custom extension to the global Synapse
+configuration,
+you must implement the org.apache.synapse.config.Extension
+interface, and you must write your custom ExtensionFactory
+implementation which will create the instance of your extension, so
+that
+it could be set into the SynapseConfiguration as a named global
+'property'.
+The interfaces referenced are listed below.<br>
+<br>
+<h4>The Extension interface</h4>
+<pre>package org.apache.synapse.config;<br><br>import ...<br><br>/**<br> * An Extension allows the Synapse configuration to be extended. The Spring<br> * configuration support is implemented as such an extension, so that the<br> * Synapse core will not be dependent on Spring classes. An extension<br> * &lt;b&gt;must&lt;/b&gt; specify the following methods to set and get its name.<br> */<br>public interface Extension {<br><br>    public String getName();<br><br>    public void setName(String name);<br>   <br>}<br></pre>
+<h4>The ExtensionFactory interface<br>
+</h4>
+<pre>package org.apache.synapse.config.xml;<br><br>import ....<br><br>/**<br> * A extension factory that is capable of creating an instance of a<br> * named extension, through a given XML, should implement this interface<br> */<br>public interface ExtensionFactory {<br>    /**<br>     * Creates an instance of a named extension using the OMElement<br>     * @param elem<br>     * @return the created named extension<br>     */<br>    public Extension createExtension(OMElement elem);<br><br>    /**<br>     * The QName of the extension element in the XML config<br>     * @return QName of the extension element<br>     */<br>    public QName getTagQName();<br><br>}<br></pre>
+<h4>Loading of Extensions by the Synapse runtime</h4>
+Synapse loads available extensions from the runtime classpath using the
+<a
+ href="http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider">J2SE
+Service Provider model</a>.
+This essentially iterates over the available JAR files, for&nbsp; a
+META-INF/services directory within each file,&nbsp; and looks for a
+text
+file with the name org.apache.synapse.config.xml.ExtensionFactory which
+contains a list of fully qualified classname that implement the above
+interface, listing each class in a separate line.<br>
+<br>
+e.g. The built-in extension_mediators.jar contains the following
+structure<br>
+<br>
+<pre>extension_mediators.jar<br>    /META-INF/services<br>        org.apache.synapse.config.xml.ExtensionFactory<br>        org.apache.synapse.config.xml.MediatorFactory<br>    /... the implementation classes as usual...<br><br></pre>
+The org.apache.synapse.config.xml.ExtensionFactory text file discussed
+above contains the line
+"org.apache.synapse.config.xml.SpringConfigExtensionFactory" but may
+contain multiple lines specifying a list of extensions contained within
+the specific JAR file.<br>
+<br>
+Once the available ExtensionFactory implementations are loaded by the
+Synapse initializer, it accumulates the list of defined XML
+configuration elements by calling to the getTagQName() method of the
+ExtensionFactory implementation. Lets consider the Spring extension as
+an example.<br>
+<br>
+<pre>package org.apache.synapse.config.xml;<br><br>import ...<br><br>/**<br> * Creates a Spring configuration extension from XML configuration. A Spring<br> * configuration extension keeps Spring away from the core of synapse<br> *<br> * &lt;spring:config name="string" src="file"/&gt;<br> */<br>public class SpringConfigExtensionFactory implements ExtensionFactory {<br><br>    private static final Log log = LogFactory.getLog(SpringConfigExtensionFactory.class);<br><br>    private static final QName SPRING_CFG_Q = new QName(Constants.SYNAPSE_NAMESPACE + "/spring", "config");<br><br>    /**<br>     * &lt;spring:config name="string" src="file"/&gt;<br>     *<br>     * @param elem the XML configuration element<br>     * @return A named Spring Configuration<br>     */<br>    public Extension createExtension(OMElement elem) {<br><br>        SpringConfigExtension springCfgExt = null;<br>        OMAttribute name = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "name"));<br>   
      OMAttribute src  = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "src"));<br><br>        if (name == null) {<br>            handleException("The 'name' attribute is required for a Spring configuration definition");<br>        } else if (src == null) {<br>            handleException("The 'src' attribute is required for a Spring configuration definition");<br>        } else {<br>            springCfgExt = new SpringConfigExtension(name.getAttributeValue(), src.getAttributeValue());<br>        }<br>        return springCfgExt;<br>    }<br><br>    private void handleException(String msg) {<br>        log.error(msg);<br>        throw new SynapseException(msg);<br>    }<br>}<br></pre>
+The getTagQName() returns the name space
+"http://ws.apache.org/ns/synapse/spring" and the element name as
+"config", and thus registers itself as the handler for a
+&lt;spring:config .../&gt; element where the namespace spring refers to
+"http://ws.apache.org/ns/synapse/spring". It should be noted that the
+XML configuration extensions must reside within the &lt;definitions&gt;
+elements of the Synapse XML configuration. Refer to the Synapse
+configuration language syntax for more information on the structure of
+the Synapse XML. If the Synapse configuration builder comes across an
+XML configuration element that has been registers (as shown above), it
+will then call into the implementation of the ExtensionFactory
+implementations' createExtension(OMElement elem) method with the XML
+element, and an instance of the Extension interface implementation in
+return. This extension implementation class getName() method is used to
+store it into the SynapseConfiguration, as a "property", and thus could
+be retrieved later via this same "name". Hence the implementations
+should be careful to use unique meaningful names for their
+implementations.<br>
+<br>
+For completeness, the implementation of the Spring extension is
+given in the following listing.<br>
+<br>
+<pre>package org.apache.synapse.config;<br><br>import ...<br><br>/**<br> * This defines an extension to Synapse to process a Spring Configuration.<br> * This keeps the Spring dependency out from the Synapse core, and the<br> * dependent Jars from the core distribution.<br> *<br> * A Spring configuration is usually named, but this class allows an<br> * inlined configuration to be built up as well, where the Spring mediator<br> * defines an inline Spring configuration<br> */<br>public class SpringConfigExtension implements Extension {<br><br>    /**<br>     * The name of this Spring configuration<br>     */<br>    private String name = null;<br><br>    /**<br>     * This is the Spring ApplicationContext/BeanFactory<br>     */<br>    private GenericApplicationContext appContext = null;<br><br>    /**<br>     * Create a Spring configuration from the given configuration<br>     *<br>     * @param configFile the configuration file to be used<br>     */<br>    public SpringConfigEx
 tension(String name, String configFile) {<br>        setName(name);<br>        appContext = new GenericApplicationContext();<br>        XmlBeanDefinitionReader xbdr = new XmlBeanDefinitionReader(appContext);<br>        xbdr.setValidating(false);<br>        xbdr.loadBeanDefinitions(new FileSystemResource(configFile));<br>        appContext.refresh();<br>    }<br><br>    public GenericApplicationContext getAppContext() {<br>        return appContext;<br>    }<br><br>    public String getName() {<br>        return name;<br>    }<br><br>    public void setName(String name) {<br>        this.name = name;<br>    }<br><br>    public QName getTagQName() {<br>        return SPRING_CFG_Q;<br>    }<br>}<br><br></pre>
+</body>
+</html>

Modified: incubator/synapse/trunk/java/xdocs/getInvolved.html
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/getInvolved.html?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/xdocs/getInvolved.html (original)
+++ incubator/synapse/trunk/java/xdocs/getInvolved.html Tue May 23 02:06:28 2006
@@ -4,14 +4,12 @@
 
 <p>For more information see</p>
 
-<ol><li>The original proposal: <a
-        href="http://wiki.apache.org/incubator/SynapseProposal">http://wiki.apache.org/incubator/SynapseProposal</a></li>
-
-    <li>The Wiki: <a href="http://wiki.apache.org/ws/Synapse">http://wiki.apache.org/ws/Synapse</a></li>
-    <li>The Wiki User Guide: <a
-        href="http://wiki.apache.org/ws/Synapse/UserGuide">http://wiki.apache.org/ws/Synapse/UserGuide</a></li>
-    <li>M1 release criteria: <a
-        href="http://wiki.apache.org/ws/Synapse/M1Criteria">http://wiki.apache.org/ws/Synapse/M1Criteria</a></li></ol>
-
+<ol>
+	<li>The original proposal: <a href="http://wiki.apache.org/incubator/SynapseProposal">http://wiki.apache.org/incubator/SynapseProposal</a></li>
+  <li>The Wiki: <a href="http://wiki.apache.org/ws/Synapse">http://wiki.apache.org/ws/Synapse</a></li>
+  <li>The Synapse Configuration Language: <a href="http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage">http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage</a></li>
+  <!--<li>The Wiki User Guide: <a href="http://wiki.apache.org/ws/Synapse/UserGuide">http://wiki.apache.org/ws/Synapse/UserGuide</a></li>-->
+  <!--<li>M1 release criteria: <a href="http://wiki.apache.org/ws/Synapse/M1Criteria">http://wiki.apache.org/ws/Synapse/M1Criteria</a></li>-->
+</ol>
 </body>
 </html>

Modified: incubator/synapse/trunk/java/xdocs/index.xml
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/index.xml?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/xdocs/index.xml (original)
+++ incubator/synapse/trunk/java/xdocs/index.xml Tue May 23 02:06:28 2006
@@ -23,56 +23,60 @@
     <title>Apache Synapse</title>
   </properties>
 
-  <body>
-    <section name="Apache Synapse">
-      <p>
-        The Synapse project will create a robust, lightweight
-        implementation of a highly scalable and distributed service mediation
-        framework based on Web services specifications.
-      </p>
-      
-       <p>For more information, see:</p>
-        <ul>
-        <li>The wiki (we use this more than this main site): <a href="http://wiki.apache.org/ws/Synapse">http://wiki.apache.org/ws/Synapse</a></li>
-        <li>The original proposal: <a href="http://wiki.apache.org/incubator/SynapseProposal">http://wiki.apache.org/incubator/SynapseProposal</a></li>
-        <li>The M1 release download is available from <a href="http://www.apache.org/dist/ws/synapse/M1/">http://www.apache.org/dist/ws/synapse/M1</a></li>
-        <li>The developer mailing list:  <a href="mailto:synapse-dev-subscribe@ws.apache.org">Subscribe</a></li>
-        <li>The users mailing list:  <a href="mailto:synapse-user-subscribe@ws.apache.org">Subscribe</a></li>
-        </ul>
+<body>
+  
+<section name="Apache Synapse">
+	<p>
+  The Synapse project will create a robust, lightweight
+  implementation of a highly scalable and distributed service mediation
+  framework based on Web services specifications.
+	</p>
 
-	</section>
-	<section name="Introduction">
-		<p>Synapse is a mediation framework for Web Services. Synapse allows messages flowing through, into, or out of an organization to be mediated, 	including aspects such as: </p>
-	<ul>
-	<li><p>      Logging, service lookup, performance mediation </p>
-	</li>
-	<li><p>      Versioning, failover, monitoring </p>
-
-	</li>
-	<li><p>      Fault management, tracing </p>
-	</li>
-	</ul>
-	<p>The user guide is available at <a  class="external" rel="nofollow" href="http://wiki.apache.org/ws/Synapse/UserGuide">http://wiki.apache.org/ws/Synapse/UserGuide</a> </p>
-<p>Synapse, incidentally, is pronounced "sine-apse", and not "sin-apse".  </p>
-	</section>
-	<section name="Status">
-
-	<p>Synapse is an effort undergoing incubation at the Apache Software Foundation (ASF),
-sponsored by the Web Services PMC. Incubation is required of all newly accepted projects 
-until a further review indicates that the infrastructure, communications, and decision making process 
-have stabilized in a manner consistent with other successful ASF projects. 
-While incubation status is not necessarily a reflection of the completeness or 
-stability of the code, it does indicate that the project has 
-yet to be fully endorsed by the ASF.</p>
-	<p>We have released a first Milestone M1. The release will supports: </p>
-	<ul>
-	<li><p> Simple mediation based on regex and xpath rules </p></li>
-	<li><p> Onbound routing of messages </p></li>
-	<li><p> Deploy simple Java mediators to perform logging, routing, message transform etc </p></li>
-	<li><p> XSLT transformation of messages </p></li>
-	<li><p> HTTP Proxy support </p></li>
-	<li><p> Stages and in/out handling of messages </p></li>
+ 	<p>For more information, see:</p>
+  <ul>
+  <li>The wiki (we use this more than this main site): <a href="http://wiki.apache.org/ws/Synapse">http://wiki.apache.org/ws/Synapse</a></li>
+  <li>The original proposal: <a href="http://wiki.apache.org/incubator/SynapseProposal">http://wiki.apache.org/incubator/SynapseProposal</a></li>
+  <li>The Synapse Configuration Language: <a href="http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage">http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage</a></li>
+	<li>The Wiki User Guide: <a href="http://wiki.apache.org/incubator/Synapse/SynapseUserGuide">http://wiki.apache.org/incubator/Synapse/SynapseUserGuide</a></li>
+	<li>The Wiki Synapse extension guide: <a href="http://wiki.apache.org/incubator/Synapse/ExtendingSynapse">http://wiki.apache.org/incubator/Synapse/ExtendingSynapse</a></li>
+  <li>The M2 release download is available from <a href="http://www.apache.org/dist/ws/synapse/M2/">http://www.apache.org/dist/ws/synapse/M2</a></li>
+  <li>The developer mailing list:  <a href="mailto:synapse-dev-subscribe@ws.apache.org">Subscribe</a></li>
+  <li>The users mailing list:  <a href="mailto:synapse-user-subscribe@ws.apache.org">Subscribe</a></li>
+  </ul>
+</section>
+
+<section name="Introduction">
+	<p>Synapse is a mediation framework for Web Services. Synapse allows messages flowing through, into, or out of an organization to be mediated.</p>
+	<!--<p>The user guide is available at <a  class="external" rel="nofollow" href="http://wiki.apache.org/ws/Synapse/UserGuide">http://wiki.apache.org/ws/Synapse/UserGuide</a> </p>-->
+	<p>The configuration language and its syntax is available at <a  class="external" rel="nofollow" href="http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage">http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage</a> </p>
+
+	<p>Synapse, incidentally, is pronounced "sine-apse", and not "sin-apse".  </p>
+</section>
+	
+<section name="Status">
+	<p>Synapse is an effort undergoing incubation at the Apache Software Foundation (ASF),
+	sponsored by the Web Services PMC. Incubation is required of all newly accepted projects 
+	until a further review indicates that the infrastructure, communications, and decision making process 
+	have stabilized in a manner consistent with other successful ASF projects. 
+	While incubation status is not necessarily a reflection of the completeness or 
+	stability of the code, it does indicate that the project has 
+	yet to be fully endorsed by the ASF.</p>
+	
+	<p>We have released the second Milestone M2. The release will support: </p>
+
+	<ul>
+	<li><p> A streamlined configuration model and a new XML syntax</p></li>
+	<li><p> Concept of Endpoints </p></li>
+	<li><p> Global and message context based 'properties', and a new XPath extention function synapse:get-property() to read them</p></li>
+	<li><p> New mediators - Switch &amp; Validate </p></li>
+	<li><p> Enhanced and streamlined mediators - send, drop, log, makefault, transform, header, filter, class, set-property, sequence, in &amp; out </p></li>
+	<li><p> Message correlation support</p></li>
+	<li><p> Enhanced Spring support</p></li>
+	<li><p> Synapse initialization on Axis2 startup</p></li>
+	<li><p> Sample applications and configurations demonstrating most of the above features </p></li>
+	<li><p> Enhanced documentation </p></li>
 	</ul>
-    </section>
-  </body>
+</section>
+
+</body>
 </document>

Modified: incubator/synapse/trunk/java/xdocs/navigation.xml
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/navigation.xml?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/xdocs/navigation.xml (original)
+++ incubator/synapse/trunk/java/xdocs/navigation.xml Tue May 23 02:06:28 2006
@@ -1,4 +1,3 @@
-<!-- Created By Eran Chinthaka -->
 <project name="Synapse">
   <title>Synapse</title>
   <body>
@@ -6,12 +5,12 @@
       <item name="Home" href="index.html"/>
       <item name="Download Synapse">
         <item name="Releases" href="download.html"/>
-        <item name="Source Code"
-              href="http://svn.apache.org/viewcvs.cgi/incubator/synapse/trunk/java/"/>
+        <item name="Source Code" href="http://svn.apache.org/viewcvs.cgi/incubator/synapse/trunk/java/"/>
       </item>
       <item name="Documentation">
-        <item name="User Guide" href="http://wiki.apache.org/ws/Synapse/UserGuide"/>
-        <item name="Writing Processors" href="extension_processor_writing.html"/>
+      	<item name="Synapse configuration language and syntax" href="http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage"/>
+        <item name="User Guide" href="userguide.html"/>
+        <item name="Extending Synapse" href="extending_synapse.html"/>
       </item>
       <item name="Get Involved" href="getInvolved.html" />
       <item name="Project Information">

Modified: incubator/synapse/trunk/java/xdocs/userguide.html
URL: http://svn.apache.org/viewvc/incubator/synapse/trunk/java/xdocs/userguide.html?rev=408856&r1=408855&r2=408856&view=diff
==============================================================================
--- incubator/synapse/trunk/java/xdocs/userguide.html (original)
+++ incubator/synapse/trunk/java/xdocs/userguide.html Tue May 23 02:06:28 2006
@@ -1,530 +1,428 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
-        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html>
-<head>
-    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
-    <title>Synapse Userguide</title>
-</head>
-
-<body>
-<h1>UserGuide</h1>
-
-<p>Apache Synapse is a mediation framework for Web Services. Synapse allows
-    messages flowing through, into, or out of an organization to be mediated,
-    including aspects such as:</p>
-<ul>
-    <li><p>Logging, service lookup, performance mediation</p>
-    </li>
-    <li><p>Versioning, failover, monitoring</p>
-    </li>
-    <li><p>Fault management, tracing</p>
-    </li>
-</ul>
-
-<h3>Getting started</h3>
-
-<p>Although there is a clearly defined division between Synapse and Axis2,
-    the Synapse system relies on Axis2 to run. Firstly, it uses the AXIOM object
-    model, and secondly it uses Axis2 as a listener and sender for Web service
-    requests. There are two ways to set up the Synapse server.</p>
-<ol>
-    <li><p>synapse.war : Deploy the WAR file into your favorite servlet
-        container. Once it's expanded, you will see in <tt>WEB-INF</tt> the
-        axis2.xml which has been configured to execute Synapse properly and
-        synapse.xml, which will hold the rules pertaining to messages passing
-        through Synapse.</p>
-    </li>
-    <li><p>A lightweight server which runs with its own HTTP server : This uses
-        Axis2's SimpleHTTPServer which is a simple lightweight HTTP server
-        option
-        that does not require a Servlet Engine. First unzip the
-        Synapse-M1.zip. In the bin directory you will find scripts
-        called:</p>
-        <pre>synapse [.sh or .bat]</pre>
-
-        <p>You should also see a directory called <tt>synapse-repository</tt>.
-            There you will find the axis2.xml and synapse.xml config files. The
-            axis2.xml need not be modified, but you can do so if you want to.
-        </p>
-
-        <p>The command line for synapse-lightweight takes the repository
-            directory and listening port. Change directory to bin/</p>
-        <pre>sh synapse.sh ../synapse-repository -p [Linux]
-
-            synapse ../synapse-repository -p [Win]</pre>
-
-        <p>which will start the SimpleHTTPServer at port 8080. If it's needed
-            to be started at any other port use -p[port_number]. Ex:
-        </p>
-        <pre>
-            ./synapse.sh ../synapse-repository -p5043
-        </pre>
-    </li>
-</ol>
-
-<p>Note that you can also build them using Maven: Build the WAR file by using
-    the command,</p>
-<pre> maven dist-bin</pre>
-
-<p>This creates both the WAR and binary distribution JARs.</p>
-
-<p></p>
-
-<h3>Deployment models</h3>
-
-<p>Synapse can intermediate in a number of different modes:</p>
-<ul>
-    <li>Transparent mode
-        <ol>
-            <li>Synapse acts as an HTTP Proxy.</li>
-            <li>Clients are configured with the Synapse endpoint URL as the HTTP
-                Proxy URL.</li>
-            <li>Synapse can work with both WS-A and non-WS-A SOAP messages.</li>
-        </ol>
-    </li>
-    <li>Gateway mode
-        <ol>
-            <li>The client explicitly sends a message to Synapse (with or
-                without
-                WS-A headers)</li>
-            <li>The synapse.xml must include enough routing information to
-                correctly set the WS-A To and then Synapse forwards the
-                message</li>
-        </ol>
-    </li>
-    <li>Smart client mode
-        <ol>
-            <li>The client sends the message to Synapse but sets the WSA headers
-                to
-                the ultimate destination</li>
-        </ol>
-    </li>
-</ul>
-
-<h3>Processing model</h3>
-
-<p>Synapse has an overall model under which there are two ways to extend the
-    framework.</p>
-<ol>
-    <li><p>Using the SPI: Developers can build Synapse Extensions, which extend
-        both the functionality and the XML configuration syntax of Synapse.</p>
-    </li>
-    <li><p>Using the API: Developers can build Mediators, which extend the
-        functionality of Synapse but use the existing XML syntax.</p>
-    </li>
-</ol>
-
-<p>There are also built-in mediators that do common tasks like logging,
-    redirection etc. Typically users of Synapse extend the function using
-    mediators, while the Synapse development team can extend the core by
-    building
-    extensions.</p>
-
-<p>A synapse deployment attaches to one or more transport listeners, and
-    mediates messages from those listeners. One of the key decisions is how to
-    "attach" mediators to messages.</p>
-
-<h4>Rules</h4>
-
-<p>By default Synapse will execute all defined mediators against a given
-    message, but this can be affected by using simple rules. Synapse has two
-    predefined rules: <tt>&lt;xpath&gt;</tt> and <tt>&lt;regex&gt;</tt>. xpath
-    evaluates a XPath expression against the message, while regex matches a
-    regular expression against one of the message headers (such as the
-    <tt>wsa:To</tt> address).</p>
-
-<p>Synapse also has two simple rules <tt>&lt;in&gt;</tt> and
-    <tt>&lt;out&gt;</tt> which process only request or response messages (as
-    seen
-    by the target service).</p>
-
-<h4>Stages</h4>
-
-<p>As a message goes through the Synapse engine, it can pass through multiple
-    stages. Each stage is a way of grouping and organizing mediators and rules.
-    A
-    stage simply gives the group a name.</p>
-
-<h4>An example</h4>
-
-<p></p>
-<pre>&lt;stage name="stage1-all"&gt;
-    &lt;!--This enables the addressing module which looks at wsa headers --&gt;
-    &lt;engage-addressing-in/&gt;
-
-    &lt;!--Logs the message --&gt;
-    &lt;log/&gt;
-
-    &lt;/stage&gt;
-
-    &lt;stage name="stage2-service-specific" &gt;
-    &lt;regex message-address="to" pattern="http://xmethods.*"&gt;
-    &lt;header type="to" value="http://64.124.140.30:9090/soap"/&gt;
-    &lt;/regex&gt;
-    &lt;/stage&gt;
-
-    &lt;stage name="stage3-send-all"&gt;
-    &lt;send/&gt;
-    &lt;/stage&gt;</pre>
-
-<p>This example demonstrates <em>stage</em>, <em>regex</em> and some built in
-    mediators: <em>log</em>, <em>addressing</em> and <em>header</em>. It does
-    not
-    demonstrate the <em>xpath</em>, <em>in</em> or <em>out</em> rules.</p>
-
-<p>Every stage will be executed for each message. The first stage does
-    initial processing including parsing the addressing headers and logging the
-    message.</p>
-
-<p>The next stage is using a regex rule to redirect every message addresses
-    to xmethods.com and xmethods.net to the real SOAP address of the XMethods
-    quote service.</p>
-
-<p>Finally the last stage sends the message on. For responses, the messages
-    come back through the same stages. This time the message will not be
-    redirected because the "to" address on the response will not match
-    xmethods.</p>
-
-<h4>User Mediators</h4>
-
-<p>Synapse allows users to extend the built in mediators and add their own.
-    The mediators use the Synapse API. The API has three interfaces.</p>
-
-<h4>SynapseMessage</h4>
-
-<p>The primary interface is the <a>SynapseMessage</a> interface:</p>
-<pre>public interface SynapseMessage {
-
-    public SOAPEnvelope getEnvelope();
-    public void setEnvelope(SOAPEnvelope envelope) throws AxisFault;
-
-    public EndpointReference getTo();
-    public void setTo(EndpointReference reference);
-    // lots more header get/setters not shown
-    // and a few other things ... see the real code
-
-    public Object getProperty(String key);
-    public void setProperty(String key, Object value);
-
-    public void setResponse(boolean b);
-    public boolean isResponse();
-    }</pre>
-
-<p>The <a>SynapseMessage</a> interface is based on the Axis2
-    <a>MessageContext</a> interface. It uses the Axis2 <a>EndpointReference</a>
-    and SOAPEnvelope classes/interfaces.</p>
-
-<p>The purpose of this interface is to capture a message as it flows through
-    the system. As you will see the messages are represented using the SOAP
-    infoset. Binary messages can be embedded in the Envelope using the MTOM
-    support built into Axis2's AXIOM object model.</p>
-
-<h4>Mediator interface</h4>
-
-<p>The second key interface for mediator writers is the Mediator
-    interface:</p>
-<pre>package org.apache.synapse.api;
-
-    import org.apache.synapse.SynapseMessage;
-
-    public interface Mediator {
-    public boolean mediate(SynapseMessage sm);
-    }</pre>
-
-<p>The mediator can modify the <a>SynapseMessage</a> in any way it likes -
-    adjusting the routing headers or changing the message. If it returns false,
-    that signals to the Synapse processing model to stop processing further. For
-    example, if the mediator is a security agent it may decide that this message
-    is dangerous and should not be processed further. This is generally the
-    exception as mediators are usually designed to co-operate to process the
-    message onwards.</p>
-
-<h4>EnvironmentAware</h4>
-
-<p>The final aspect of the API is the <a>EnvironmentAware</a> interface. If
-    the mediator implements this, then it will have the
-    <a>SynapseEnvironment</a>
-    injected into it:</p>
-<pre>package org.apache.synapse.api;
-
-    import org.apache.synapse.SynapseEnvironment;
-
-    public interface EnvironmentAware {
-    public void setSynapseEnvironment(SynapseEnvironment se);
-    public void setClassLoader(ClassLoader cl);
-
-    }</pre>
-
-<p>The <a>SynapseEnvironment</a> allows the mediator access to the underlying
-    engine:</p>
-<pre>package org.apache.synapse;
-
-
-    public interface SynapseEnvironment {
-    public void injectMessage(SynapseMessage smc);
-    public ClassLoader getClassLoader();
-    public void send(SynapseMessage smc);
-    public Processor lookupProcessor(String name);
-    public void addProcessor(Processor p);
-    public Processor getMasterProcessor();
-    public void setMasterProcessor(Processor p);
-    }</pre>
-
-<h4>Mediator configuration</h4>
-
-<p>Mediators can be configured in different ways which include</p>
-<ol>
-    <li>They can be loaded as simple classes:
-        <pre>&lt;classmediator name="optional-name"
-            class="org.apache.sample.MyLogger"/&gt;</pre>
-
-        <p>This will load a class named <tt>org.apache.sample.MyLogger</tt> and
-            use it to mediate messages.</p>
-    </li>
-    <li>As deployed Axis2 Services: This will direct the message through a
-        deployed Axis2 service which implements the mediate interface:
-        <pre>&lt;servicemediator name="optional-name" service="service-name"/&gt;
-        </pre>
-    </li>
-    <li>Using IoC containers such as Spring: This model is supported by an
-        optional extension, and requires that you have the <tt>spring-core</tt>,
-        <tt>spring-context</tt> and <tt>spring-beans</tt> libraries from the <a
-            href="http://www.springframework.org/">Spring framework</a> website,
-        as
-        well as the <tt>springmediator.jar</tt> in your classpath. The Spring
-        mediator model uses a spring assembly to configure an assembly of beans.
-        The bean assembly must produce as one bean which implements the mediator
-        interface.
-        <pre>
-            &lt;synapse-spring:springmediator name="optional-name"
-            bean="name-of-bean-which-implements-mediator"&gt;
-            &lt;beans&gt;
-            &lt;bean .... spring bean assembly configuration goes here &gt;
-            &lt;/beans&gt;
-            &lt;/synapse-spring:springmediator&gt;
-        </pre>
-    </li>
-</ol>
-
-<h3>In and Out </h3>
-
-<p>Redirection is only designed to apply to "in" messages by using the
-    &lt;in&gt; rule. If we use &lt;out&gt; then you have to explictley use the
-    &lt;in&gt; rule. </p>
-<pre>&lt;stage name="stage1-all"&gt;
-    ...
-    &lt;/stage&gt;
-
-    &lt;in name="stage2-service-specific" &gt;
-    &lt;regex message-address="to" pattern="http://xmethods.*"&gt;
-    ...
-    &lt;/in&gt;
-
-    &lt;stage name="stage3-send-all"&gt;
-    ...
-    &lt;/stage&gt;</pre>
-
-<p>There is a corresponding <tt>&lt;out&gt;</tt> rule.</p>
-
-<h4>References</h4>
-
-<p>In order to make the configuration more re-usable, every rule, stage or
-    mediator can be named:</p>
-<pre>        &lt;stage name="thisname"&gt;</pre>
-
-<p>The name can then be used to "refer" to the mediator.</p>
-
-<p>So</p>
-<pre>&lt;ref ref="thisname"/&gt;</pre>
-
-<p>will cause the same processing to happen as if the stage had been included
-    at that point.</p>
-
-<p>For example:</p>
-<pre>&lt;in&gt;
-    &lt;stage name="both"&gt;
-
-    . . .
-    &lt;/stage&gt;
-    &lt;stage name="inonly"&gt; ...&lt;/stage&gt;
-    &lt;/in&gt;
-    &lt;out&gt;
-    &lt;ref ref="both"/&gt;
-
-    &lt;/out&gt;</pre>
-
-<p>Please note this is one area where we expect to do considerable work</p>
-
-<h4>Never</h4>
-
-<p>This is a stage where none of the children get executed. Its purpose is to
-    allow you to place rules and mediations and have them not executed but
-    instead refer to them from one or more other places.</p>
-
-<p>So the following may be deemed equivalent to the previous example</p>
-<pre>&lt;in&gt;
-    &lt;ref ref="both"/&gt;
-
-    &lt;stage name="inonly"&gt; ...&lt;/stage&gt;
-    &lt;/in&gt;
-    &lt;out&gt;
-    &lt;ref ref="both"/&gt;
-    &lt;out&gt;
-    &lt;never&gt;
-
-    &lt;stage name="both"&gt; ...&lt;/stage&gt;
-    &lt;/never&gt;</pre>
-
-<h4>Content based routing</h4>
-
-<p>We can further improve our example by adding some "content-based" routing.
-    Using an &lt;xpath&gt; rule we can make tests within the XML. For example,
-    we
-    could decide not to allow stock ticker queries against certain companies
-    whose share prices we were jealous of - MSFT say :-).</p>
-
-<p>To do this we can add a rule:</p>
-<pre>&lt;xpath expr="//*[Symbol='MSFT']"&gt;
-    &lt;fault/&gt;
-    &lt;/xpath&gt;</pre>
-
-<p>This rule identifies any messages with a tag <tt>Symbol</tt> whose content
-    is MSFT. The <tt>&lt;fault&gt;</tt> mediator returns a fault to the
-    client.</p>
-
-<p>We can place this rule under the regex rule, so it only applies to
-    requests aimed at xmethods.*:</p>
-<pre>&lt;regex message-address="to" pattern="http://xmethods.*"&gt;
-    &lt;header type="to" value="http://64.124.140.30:9090/soap"/&gt;
-    &lt;xpath expr="//*[Symbol='MSFT']"&gt;
-    &lt;fault/&gt;
-    &lt;/xpath&gt;
-
-    &lt;/regex&gt;</pre>
-
-<p>Note that the rules, like the stages, can have more than one child. While
-    it isn't fixed in Synapse, the built-in rules and mediators all use the same
-    "plan" to execute their children, which involves executing in the lexical
-    order that they occur in the synapse.xml.</p>
-
-<h3>XML Configuration Elements</h3>
-
-<p>Every element in the Synapse configuration file maps to a instance of a
-    Processor. There are two types of elements - <strong>nodes</strong> that
-    "contain" sub-elements (ex: <tt>&lt;regex/&gt;</tt>, <tt>&lt;stage/&gt;</tt>
-    and <tt>&lt;xpath/&gt;</tt>) and <strong>leaves</strong> which only contain
-    configuration for that element or have no xml children (ex:
-    <tt>&lt;engage-addressing-in/&gt;</tt>).</p>
-
-<h4>Grouping and Referencing elements</h4>
-<ol>
-    <li><p><tt>&lt;stage/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;in/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;out/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;never/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;ref/&gt;</tt></p>
-    </li>
-</ol>
-
-<h4>Rule elements</h4>
-<ol>
-    <li><p><tt>&lt;regex/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;xpath/&gt;</tt></p>
-    </li>
-</ol>
-
-<h4>Built-in mediators</h4>
-<ol>
-    <li><p><tt>&lt;engage-addressing-in/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;log/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;fault/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;send/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;header/&gt;</tt></p>
-    <li><p><tt>&lt;xslt/&gt;</tt></p>
-    </li>
-</ol>
-
-<h4>User mediator types</h4>
-<ol>
-    <li><p><tt>&lt;servicemediator/&gt;</tt></p>
-    </li>
-    <li><p><tt>&lt;classmediator/&gt;</tt></p>
-    </li>
-</ol>
-
-<h3>Samples</h3>
-
-<p><h4>Note:</h4></p>
-
-<p><i>If you are running the samples using 0.94 distributions, please follow <a
-        href="http://ws.apache.org/axis2/download.cgi" target="_blank">this</a> before running the samples.</i></p>
-
-<h4>Logging</h4>
-
-<p>The system ships with a couple of samples. These include sample clients
-    and appropriate synapse.xml intermediary configurations.</p>
-
-<p>The first sample demonstrates the logging facility. Here is a simple
-    synapse.xml:</p>
-<pre>&lt;synapse xmlns="http://ws.apache.org/ns/synapse"&gt;
-    &lt;engage-addressing-in/&gt;
-    &lt;log/&gt;
-    &lt;send/&gt;
-
-    &lt;/synapse&gt;</pre>
-
-<p>The logging uses the Log4J/Commons Logging support in Apache. You can
-    configure it using <tt>log4j.properties</tt>.</p>
-
-<p>The sample client is a standard Axis2 client built to run against the
-    XMethods Quote Service. However, it has been modified to use a different
-    transport address from the Web Services Addressing TO header. In other
-    words,
-    the SOAP envelope is addressed to the XMethods service, but the actual HTTP
-    request goes to Synapse. The sample client has three (optional)
-    parameters:</p>
-<pre>StockQuoteClient SYMBOL webservicexURL TransportURL</pre>
-
-<p>e.g.</p>
-<pre>StockQuoteClient IBM http://www.webservicex.net/stockquote.asmx
-    http://localhost:8080</pre>
-
-<p>The sample synapse.xml can be used to demonstrate a few simple behaviours.
-    1) Firstly try this:</p>
-<pre>StockQuoteClient IBM http://www.webservicex.net/stockquote.asmx
-    http://www.webservicex.net/stockquote.asmx</pre>
-
-<p>This will bypass Synapse and simply call XMethods.</p>
-
-<p>2) Now start Synapse on port 8080 and try</p>
-<pre>StockQuoteClient</pre>
-
-<p>on its own. You should see the messages being logged as they pass through
-    Synapse.</p>
-
-<p>3) This time try</p>
-<pre>StockQuoteClient IBM urn:xmethods-delayed-quotes</pre>
-
-<p>This should hit a regex rule which replaces the "virtual URI" that is in
-    the wsa:To header with the real URL.</p>
-
-<p>4) Now try</p>
-<pre>StockQuoteClient MSFT </pre>
-
-<p>which should hit a "content-based" xpath rule.</p>
-
-<p>ProxyStockQuoteClient illutstrates how Synapse working as Proxy</p>
-<a></a> <!-- end page -->
-</body>
-</html>
-
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+<head>
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  <title>Synapse Userguide</title>
+</head>
+<body>
+<h1>User Guide</h1>
+<p>Apache Synapse is a mediation framework for Web Services. Synapse
+allows messages flowing through, into, or out of an organization to be
+mediated. Refer to the project documentation for more details.<br>
+</p>
+<h2>Getting started</h2>
+<h3>Synapse Installation<br>
+</h3>
+<p>Synapse is available in two distributions. A standalone lightweight
+distribution which runs on its own HTTP server, and as a WAR
+distribution.
+The WAR distribution is not currently supported for the Milestone M2
+release. Hence you will need to start the lightweight version of
+Synapse as described below.<br>
+</p>
+<p>Synapse will always start in the SYNAPSE_HOME directory, which is
+where Synapse is installed. This directory has the following structure.<br>
+</p>
+<table style="width: 80%; text-align: left;" border="0" cellpadding="2"
+ cellspacing="2">
+  <tbody>
+    <tr>
+      <td style="vertical-align: top;">/synapse<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/bin<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">Contains the binaries. i.e.
+synapse.sh and synapse.bat</td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/lib<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/endorsed<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">If validation mediator is used,
+Xerces parser JAR files should be placed here</td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/samples<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">This directory includes several
+samples
+with varying complexity.</td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/synapse_repository</td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">This is the underlying Axis2
+repository.
+Refer to Axis2 documentation for more information and structure of this.<br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/conf<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">Contains the default synapse.xml
+configuration file and the axis2.xml configuration file for Axis<br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/sample<br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">Contains sample synapse XML
+configurations to be used with the samples<br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/modules<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/services<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+    </tr>
+    <tr>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">/xdocs<br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;"><br>
+      </td>
+      <td style="vertical-align: top;">-<br>
+      </td>
+      <td style="vertical-align: top;">Contains bundled documentation<br>
+      </td>
+    </tr>
+  </tbody>
+</table>
+<br>
+<br>
+<h3>Starting Synapse through the <span style="font-family: monospace;"></span>synapse
+[.sh or .bat] script</h3>
+<p>The command line for synapse-lightweight takes the repository
+directory and listening port as optional parameters. However as these
+arguments are optional, if they are not specified the port will default
+to 8080 for http and the repository to the 'synapse_repository'
+directory.&nbsp; Execution of the script starts up synapse as follows.<br>
+</p>
+<table
+ style="width: 905px; height: 33px; text-align: left; margin-left: auto; margin-right: auto;"
+ border="1" cellpadding="2" cellspacing="2">
+  <tbody>
+    <tr>
+      <td
+ style="background-color: rgb(255, 255, 204); vertical-align: top;">C:\Java\SynapseDist\synapse&gt;bin\synapse.bat<br>
+......<br>
+[SimpleHTTPServer] Starting<br>
+[SimpleHTTPServer] Using the Axis2 Repository
+C:\Java\SynapseDist\synapse\bin\..\synapse_repository<br>
+[SimpleHTTPServer] Listening on port 8080<br>
+[main] INFO&nbsp; SynapseAxis2Interceptor - Initializing Synapse...<br>
+[main] INFO&nbsp; SynapseAxis2Interceptor - System property
+'synapse.xml' specifies synapse configuration&nbsp; as
+C:\Java\SynapseDist\synapse\bin\..\synapse_repository\conf\synapse.xml<br>
+[main] INFO&nbsp; XMLConfigurationBuilder - Generating the Synapse
+configuration model by parsing the XML configuration<br>
+[main] INFO&nbsp; SynapseConfigurationBuilder - Loaded Synapse
+configuration from :
+C:\Java\SynapseDist\synapse\bin\..\synapse_repository\conf\synapse.xml<br>
+[main] INFO&nbsp; SynapseAxis2Interceptor - Synapse initialized...<br>
+[SimpleHTTPServer] Started<br>
+      </td>
+    </tr>
+  </tbody>
+</table>
+<br>
+<p>If required the port and the Axis2 repository locations could be
+specified as follows<br>
+</p>
+<pre> synapse.sh -p5043 synapse_repository</pre>
+<p>A convenience method to start Synapse with sample configurations
+(found in synapse_repository\conf\sample) is
+available with the M2 release. This could be used as follows:</p>
+<pre> synapse.sh -sample &lt;number&gt;</pre>
+<p>&lt;number&gt; could be 0, 1 or 2, and will pick up the
+synapse_repository\conf\sample\synapse_sample_&lt;number&gt;.xml file
+from the samples.<br>
+</p>
+<p>The default log4j.properties file found in the SYNAPSE_HOME
+directory sets the default Synapse log level as DEBUG. You may change
+this to INFO or WARN as required.<br>
+</p>
+<h3>Building the Synapse source</h3>
+<p>If you have downloaded the Synapse source, and set up Maven and its
+dependencies, you could build the binary distribution as follows:<br>
+</p>
+<pre> maven dist-bin</pre>
+<p>This creates the Synapse-Incubating-M2-SNAPSHOT-bin.zip distribution
+file within target\dist<br>
+</p>
+<pre> maven dist-extensions<br></pre>
+<p>The dist-extensions target builds the Synapse extensions
+Extensions-Synapse-M2-SNAPSHOT-bin.zip into target\dist<br>
+</p>
+<h3>Installing Extensions</h3>
+Synapse extensions allows the core of Synapse to be kept to the minimum
+level, yet still allow extension. Hence the Spring and Validation
+support which depends
+on the Spring and Xerces JARs are kept outside of the core distribution
+as extensions. The extensions are written using the Synapse SPI and the
+API which allows the Synapse functionality and configuration to be
+enhanced. (Refer to the Extending Synapse document for more
+information) Hence the Spring extension source provides a good example
+for
+someone interested in using the SPI /API to extend the functionality
+and
+configuration of Synapse.<br>
+<ul>
+  <li>Spring extension</li>
+</ul>
+<p style="margin-left: 40px;">The Spring extension requires spring.jar
+to be placed on the synapse SYNAPSE_HOME/lib folder. In addition, you
+will need to
+place the synapse_extensions.jar file which could be found within the
+Extensions-Synapse-M2-SNAPSHOT-bin.zip distribution file to be placed
+into the same folder.<br>
+</p>
+<ul>
+  <li>Validate mediator<br>
+  </li>
+</ul>
+<p style="margin-left: 40px;">The Validate mediator depends on the
+Xerces 2.8.0 parser. To properly setup the Xerces parser, you will need
+to place the xml-apis.jar and xercesImpl.jar JAR files of Xerces into
+the SYNAPSE_HOME/lib/endorsed directory. If you have already installed
+Xerces into
+your JAVA_HOME/lib/endorsed directory, you may omit the above step.<br>
+<br>
+</p>
+<h2>Deployment models</h2>
+<p>Synapse can intermediate in a number of different modes as listed
+below. Refer to the README.txt in the samples directory for examples
+utilizing these different models.<br>
+</p>
+<ul>
+  <li>Transparent mode
+    <ol>
+    </ol>
+    <ul>
+      <li>Synapse acts as an HTTP Proxy.</li>
+      <li>Clients are configured with the Synapse endpoint URL as the
+HTTP Proxy URL.</li>
+      <li>Synapse can work with both WS-A and non-WS-A SOAP messages.</li>
+    </ul>
+    <ol>
+    </ol>
+  </li>
+  <li>Gateway mode
+    <ol>
+    </ol>
+    <ul>
+      <li>The client explicitly sends a message to Synapse (with or
+without WS-A headers)</li>
+      <li>The synapse configuration must include enough routing
+information to
+correctly set the WS-A To and then Synapse forwards the message</li>
+    </ul>
+    <ol>
+    </ol>
+  </li>
+  <li>Smart client mode
+    <ol>
+    </ol>
+    <ul>
+      <li>The client sends the message to Synapse but sets the WS-A
+headers to the ultimate destination</li>
+    </ul>
+  </li>
+</ul>
+<h2>Processing model</h2>
+<p>Synapse has an overall model under which there are two ways to
+extend the framework. This essentially maps into the
+&lt;definitions&gt; or global Synapse configuration extension through
+the SPI; and the &lt;rules&gt; or mediator extension through the API.<br>
+</p>
+<ol>
+  <li>
+    <p>Using the SPI: Developers can build Synapse configuration
+extensions, which
+extend the XML configuration of Synapse<br>
+    </p>
+  </li>
+  <li>
+    <p>Using the API: Developers can build Mediators, which extend the
+functionality of Synapse<br>
+    </p>
+  </li>
+</ol>
+<p>There are also built-in mediators that do common tasks such as
+logging,
+editing etc. Typically users of Synapse extend the function using
+mediators, while the Synapse development teams can extend the core by
+building extensions.</p>
+<p>A synapse deployment attaches to one or more transport listeners,
+and mediates messages from those listeners. One of the key decisions is
+how to "attach" mediators to messages.<br>
+</p>
+<h2>Message Mediation</h2>
+The Synapse configuration language describes the XML syntax used to
+configure Synapse, and describes the built-in mediators. Please refer
+to <a
+ href="http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage">http://wiki.apache.org/incubator/Synapse/SynapseConfigurationLanguage</a>
+for more information.<br>
+<br>
+<h3>User Mediators</h3>
+Synapse allows users to extend the built in mediators by introducing
+their
+own. The mediators use the Synapse API. The main API interfaces are
+described below. A user mediator implementation could be as simple as
+writing your own Java class implementing the
+org.apache.synapse.api.Mediator interface, which essentially defines
+one single method <br>
+<pre>public boolean mediate(MessageContext synCtx);<br></pre>
+<p>You may additionally define this class as a Spring bean using the
+Synapse
+Spring extension. The advanced user may want to write his own custom
+mediator as well as extend the XML configuration model with a custom
+configuration extension.<br>
+<br>
+</p>
+<h3>Writing a custom Class mediator implementation</h3>
+A custom class mediator must extend the Mediator interface, and
+implement the public boolean mediate(MessageContext synCtx) method and
+a no argument constructor. The MessageContext allows the mediator to
+use message content or to modify the message as required, and hand it
+over to the next mediator as defined in the configuration. Class
+mediators could be configured as follows:<br>
+<pre>&lt;class name="class-name"&gt;<br>    &lt;property name="string" (value="literal" | expression="xpath")/&gt;*<br>&lt;/class&gt;<br></pre>
+The class mediator is built into the core of Synapse, and creates an
+instance of your specified class - which must be placed into the
+SYNAPSE_HOME/lib folder as a JAR file. If any properties are defined in
+the XML configuration the setter methods are invoked. However only
+String properties are allowed for Class mediators at this time. Any
+dependent libraries use by your class mediator implementation should be
+placed into the same lib folder as well.<br>
+<br>
+<h3>Writing a custom Spring mediator implementation</h3>
+A Spring mediator implementation is a class mediator, which is managed
+by a given Spring configuration. The Spring configuration may be
+defined globally to the Synapse Configuration and reused by multiple
+Spring managed mediator beans or defined inline per bean. Refer to the
+configuration syntax for more information. As the Spring mediator
+implementation is distributed as an "extension" to the core Synapse
+distribution, you will need to manually place the
+extension_mediators.jar into the SYNAPSE_HOME/lib folder as well as
+place the spring.jar and any other dependencies into the same directory.<br>
+<br>
+A reusable Spring configuration may be defined within the XML
+configuration file as follows within the &lt;definitions&gt; element:<br>
+<br>
+<pre>&lt;spring:config name="string" src="file"/&gt;</pre>
+<br>
+And a Spring mediator implementation may be defined within the
+&lt;rules&gt; element as follows:<br>
+<br>
+<pre>&lt;spring bean="exampleBean1" (config="spring1" | src="spring.xml)"/&gt;</pre>
+<br>
+The Spring configuration referenced by the "src" attribute will be
+initialized and the bean with the name given by the "bean" attribute
+will be looked up for mediation of the message. This bean must
+implement the Mediator interface. If a reusable Spring configuration
+was defined, the bean definition could refer to this configuration
+through the name given in the "config" attribute.<br>
+<span style="font-family: monospace;"><br>
+</span><br>
+<!-- end page -->
+</body>
+</html>



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org