Author: saliya Date: Thu Feb 5 18:52:54 2009 New Revision: 30508 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=30508
Log: Modified configuration language page to suite carbon based ESB Modified: trunk/esb/java/docs/xdoc/configuration_language.xml Modified: trunk/esb/java/docs/xdoc/configuration_language.xml URL: http://wso2.org/svn/browse/wso2/trunk/esb/java/docs/xdoc/configuration_language.xml?rev=30508&r1=30507&r2=30508&view=diff ============================================================================== --- trunk/esb/java/docs/xdoc/configuration_language.xml (original) +++ trunk/esb/java/docs/xdoc/configuration_language.xml Thu Feb 5 18:52:54 2009 @@ -258,7 +258,7 @@ Sequences</a> </h3> <p> - The Synapse ESB defines a 'mediator' as a component that is performs some + The Synapse ESB defines a 'mediator' as a component that performs some mediation action on a message during the process flow. Thus a mediator gets full access to a message at the point where it is defined to gain control, and could inspect the message, modify it or take an external @@ -572,7 +572,22 @@ <suspendDurationOnFailure> <em>suspend duration in seconds</em> </suspendDurationOnFailure>? -</address></pre> + + <markForSuspension> + [<errorCodes>xxx,yyy</errorCodes>] + <retriesBeforeSuspension>m</retriesBeforeSuspension> + <retryDelay>d</retryDelay> + </markForSuspension> + + <suspendOnFailure> + [<errorCodes>xxx,yyy</errorCodes>] + <initialDuration>n</initialDuration> + <progressionFactor>r</progressionFactor> + <maximumDuration>l</maximumDuration> + </suspendOnFailure> + +</address> +</pre> <p> Following are some sample address URI definitions. </p> @@ -638,6 +653,20 @@ <enableSec [policy="key"]/>? <enableAddressing/>? <suspendDurationOnFailure>suspend-duration</suspendDurationOnFailure>? + + <markForSuspension> + [<errorCodes>xxx,yyy</errorCodes>] + <retriesBeforeSuspension>m</retriesBeforeSuspension> + <retryDelay>d</retryDelay> + </markForSuspension> + + <suspendOnFailure> + [<errorCodes>xxx,yyy</errorCodes>] + <initialDuration>n</initialDuration> + <progressionFactor>r</progressionFactor> + <maximumDuration>l</maximumDuration> + </suspendOnFailure> + <timeout> <duration>timeout-duration</duration> <action>discard|fault</action> @@ -711,9 +740,6 @@ ( <wsdl:definition>...</wsdl:definition> | <wsdl20:description>...</wsdl20:description> )? <resource location="..." key="..."/>* </publishWSDL>? - <enableSec/>? - <enableRM/>? - <policy key="string" [type="(in | out)"]/>? // optional service or message level policies such as (e.g. WS-Security and/or WS-RM policies) <parameter name="string"> // optional service parameters such as (e.g. transport.jms.ConnectionFactory) string | xml </parameter> @@ -1162,8 +1188,10 @@ </p> <p> </p> -<pre xml:space="preserve"><a href="#send">send</a> | <a href="#drop">drop</a> | <a href="#log">log</a> | <a href="#property">property</a> | <a href="#sequence_ref">sequence</a> | <a href="#validate">validate</a> | <a href="#makefault">makefault</a> | <a href="#callout">callout</a> | <a href="#xslt">xslt</a> | <a href="#header">header</a> | <a href="#filter">filter</a> | <a href="#switch">switch</a> | <a href="#in">in</a> | <a href="#out">out</a> | <a href="#router">router</a> - | <a href="#dblookup">dblookup</a> | <a href="#dbreport">dbreport</a> | <a href="#RMSequence">RMSequence</a> | <a href="#throttle">throttle</a> | <a href="#xquery">xquery</a> | <a href="#cache">cache</a> | <a href="#clone">clone</a> | <a href="#iterate">iterate</a> | <a href="#aggregate">aggregate</a> | <a href="#class">class</a> | <a href="#pojoCommand">pojoCommand</a> | <a href="#script">script</a> | <a href="#spring">spring</a> </pre> +<pre xml:space="preserve"><a href="#send">send</a> | <a href="#drop">drop</a> | <a href="#log">log</a> | <a href="#property">property</a> | <a href="#sequence_ref">sequence</a> | <a href="#validate">validate</a> | <a href="#fault">fault</a> | <a href="#callout">callout</a> | <a href="#xslt">xslt</a> | <a href="#header">header</a> | <a href="#filter">filter</a> | <a href="#switch">switch</a> | <a href="#in">in</a> | <a href="#out">out</a> | <a href="#router">router</a> + | <a href="#dblookup">dblookup</a> | <a href="#dbreport">dbreport</a> | <a href="#RMSequence">RMSequence</a> | <a href="#throttle">throttle</a> | <a href="#xquery">xquery</a> | <a href="#cache">cache</a> | <a href="#clone">clone</a> | <a href="#iterate">iterate</a> | <a href="#aggregate">aggregate</a> | <a href="#class">class</a> | <a href="#pojoCommand">pojoCommand</a> | <a href="#script">script</a> | <a href="#spring">spring</a> + | <a href="#event">event</a> | <a href="#transaction">transaction</a> +</pre> <p> </p> <p> @@ -1581,7 +1609,7 @@ <p> </p> <h4> - <a id="makefault">Makefault</a> + <a id="fault">Fault</a> </h4> <p> </p> @@ -1595,7 +1623,7 @@ <p> </p> <p> - The <makefault> mediator transforms the current message into a fault + The fault mediator transforms the current message into a fault message, but does NOT send it. The <send> mediator needs to be invoked to send a fault message created this way. The fault message "To" header is set to the "Fault-To" of the original message if such a header @@ -2217,7 +2245,34 @@ </p> <p> </p> - <h3> + <h4> + <a id="event">Event</a> + </h4> + <p> + </p> + <p> + <pre xml:space="preserve"> <syn:eventPublisher eventSourceName="event-source-name"/></pre> + </p> + <p> + Event mediator publishes events to the given event source. Thus, the presence of defined event sources + are necessary prior to the usage of this mediator. + </p> + <h4> + <a id="transaction">Transaction</a> + </h4> + <p> + </p> + <p> + <pre xml:space="preserve"> <syn:transaction action="transaction-action" /></pre> + </p> + <p> + Transaction mediator can provide transaction facility for a set of mediators defined as its child mediators. + A transaction mediator with the action "new" indicates the entry point for the transaction. A transaction is + marked completed by a transaction mediator with the action "commit". The suspend and resume actions are used + to pause a transaction at some point and start it again later. Additionally, the transaction mediator supports + three other actions, i.e. use-existing-or-new, fault-if-no-tx, rollback. + </p> + <h3> Extension mediators </h3> <p> _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
