Author: chirino
Date: Thu Oct 5 17:34:43 2006
New Revision: 453443
URL: http://svn.apache.org/viewvc?view=rev&rev=453443
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/main/lightweight-components.html
incubator/servicemix/site/main/validation.html
Modified: incubator/servicemix/site/main/lightweight-components.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/lightweight-components.html?view=diff&rev=453443&r1=453442&r2=453443
==============================================================================
--- incubator/servicemix/site/main/lightweight-components.html (original)
+++ incubator/servicemix/site/main/lightweight-components.html Thu Oct 5
17:34:43 2006
@@ -123,10 +123,7 @@
<a href="javascript:hideChildren()">Hide Children</a></span>
</div>
<div class="greybox" id="children" style="display: none;">
- <a
href="http://goopen.org/confluence/display/SM/WS+Notification" title="WS
Notification">WS Notification</a>
- <span class="smalltext">(ServiceMix)</span>
- <br>
- <a
href="http://goopen.org/confluence/display/SM/XSQL" title="XSQL">XSQL</a>
+ <a
href="http://goopen.org/confluence/display/SM/XSQL" title="XSQL">XSQL</a>
<span class="smalltext">(ServiceMix)</span>
<br>
<a
href="http://goopen.org/confluence/display/SM/Component+helper+classes"
title="Component helper classes">Component helper classes</a>
@@ -193,6 +190,9 @@
<span class="smalltext">(ServiceMix)</span>
<br>
<a
href="http://goopen.org/confluence/display/SM/Validation"
title="Validation">Validation</a>
+ <span class="smalltext">(ServiceMix)</span>
+ <br>
+ <a
href="http://goopen.org/confluence/display/SM/WS+Notification" title="WS
Notification">WS Notification</a>
<span class="smalltext">(ServiceMix)</span>
<br>
<a
href="http://goopen.org/confluence/display/SM/Quartz" title="Quartz">Quartz</a>
Modified: incubator/servicemix/site/main/validation.html
URL:
http://svn.apache.org/viewvc/incubator/servicemix/site/main/validation.html?view=diff&rev=453443&r1=453442&r2=453443
==============================================================================
--- incubator/servicemix/site/main/validation.html (original)
+++ incubator/servicemix/site/main/validation.html Thu Oct 5 17:34:43 2006
@@ -114,10 +114,9 @@
-->
<DIV class="wiki-content"><P>The validation component provides
schema validation of documents using <SPAN class="nobr"><A
href="http://java.sun.com/xml/jaxp/index.jsp" title="Visit page outside
Confluence" rel="nofollow">JAXP 1.3<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> and <SPAN
class="nobr"><A href="http://www.w3.org/XML/Schema" title="Visit page outside
Confluence" rel="nofollow">XMLSchema<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> or <SPAN
class="nobr"><A href="http://relaxng.org/" title="Visit page outside
Confluence" rel="nofollow">RelaxNG<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0"
width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN>.</P>
-<P>The component is pretty simple and straightforward; its configured with a
schema document and optionally an error handler implementing the
MessageAwareErrorHandler interface. If the inbound document is valid, it
continues on its way to the ultimate destination. Otherwise a fault is returned
in the message exchange.</P>
+<P>The component is pretty simple and straightforward; its configured with a
schema document and optionally an error handler factory implementing the
MessageAwareErrorHandlerFactory interface. This factory produces an error
handler which conforms to the MessageAwareErrorHandler interface. If the
inbound document is valid, it continues on its way to the ultimate destination.
Otherwise a fault is returned in the message exchange.</P>
<P>ServiceMix configuration using the default error handler:</P>
-
<DIV class="code"><DIV class="codeContent">
<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"SchemaValidator"</SPAN>
service=<SPAN class="code-quote">"foo:SchemaValidator"</SPAN>
endpoint=<SPAN class="code-quote">"SchemaValidator"</SPAN>></SPAN>
<SPAN class="code-tag"><sm:component></SPAN>
@@ -127,9 +126,7 @@
<SPAN class="code-tag"></sm:component></SPAN>
<SPAN class="code-tag"></sm:activationSpec></SPAN></PRE>
</DIV></DIV>
-
-<P>The default error handler simply counts the number of warnings, errors and
fatal errors and if the number of errors and fatal errors is greater than zero
then a fault message is returned. Another implementation is available which
will capture the messages and output them in an xml format as below:</P>
-
+<P>The default error handler simply counts the number of warnings, errors and
fatal errors and if the number of errors and fatal errors is greater than zero
then a fault message is returned. Another implementation is available which
will capture the messages and output them in an xml format as below:</P>
<DIV class="code"><DIV class="codeContent">
<PRE class="code-xml"><SPAN class="code-tag"><rootPath xmlns=<SPAN
class="code-quote">"namespace"</SPAN>></SPAN>
<SPAN class="code-tag"><warning></SPAN><SPAN
class="code-tag"><![CDATA[ warning message ]]></SPAN><SPAN
class="code-tag"></warning></SPAN>
@@ -137,34 +134,26 @@
<SPAN class="code-tag"><fatalError></SPAN><SPAN
class="code-tag"><![CDATA[ fatal error message ]]></SPAN><SPAN
class="code-tag"></fatalError></SPAN>
<SPAN class="code-tag"></rootPath></SPAN></PRE>
</DIV></DIV>
-
-<P>Each warning, error or fatal error message will produce a node as shown
above. The rootPath represents an arbitrarily deep node path at which to
locate the message nodes. The root element also has a default xml namespace
attached to it. The ServiceMix configuration for this component is outlined
below:</P>
-
+<P>Each warning, error or fatal error message will produce a node as shown
above. The rootPath represents an arbitrarily deep node path at which to locate
the message nodes. The root element also has a default xml namespace attached
to it. The ServiceMix configuration for this component is outlined below:</P>
<DIV class="code"><DIV class="codeContent">
<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec
componentName=<SPAN class="code-quote">"SchemaValidator"</SPAN>
service=<SPAN class="code-quote">"foo:SchemaValidator"</SPAN>
endpoint=<SPAN class="code-quote">"SchemaValidator"</SPAN>></SPAN>
<SPAN class="code-tag"><sm:component></SPAN>
<SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.apache.servicemix.components.validation.ValidateComponent"</SPAN>></SPAN>
<SPAN class="code-tag"><property name=<SPAN
class="code-quote">"schemaResource"</SPAN> value=<SPAN
class="code-quote">"classpath:org/apache/servicemix/components/validation/schema.xsd"</SPAN>/></SPAN>
- <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"errorHandler"</SPAN> ref=<SPAN
class="code-quote">"messageAggregatingErrorHandler"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"errorHandlerFactory"</SPAN> ref=<SPAN
class="code-quote">"messageAggregatingErrorHandlerFactory"</SPAN>/></SPAN>
<SPAN class="code-tag"></bean></SPAN>
<SPAN class="code-tag"></sm:component></SPAN>
<SPAN class="code-tag"></sm:activationSpec></SPAN></PRE>
</DIV></DIV>
-
<P>And here is the bean definition for the MessageAggregatingErrorHandler:</P>
-
<DIV class="code"><DIV class="codeContent">
-<PRE class="code-xml"><SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"messageAggregatingErrorHandler"</SPAN>
class=<SPAN
class="code-quote">"org.apache.servicemix.components.validation.MessageAggregatingErrorHandler"</SPAN>></SPAN>
- <SPAN class="code-tag"><constructor-arg index=<SPAN
class="code-quote">"0"</SPAN> value=<SPAN
class="code-quote">"Fault/payload/messages"</SPAN>/></SPAN>
- <SPAN class="code-tag"><constructor-arg index=<SPAN
class="code-quote">"1"</SPAN> value=<SPAN
class="code-quote">"http://www.servicemix.org/fault"</SPAN>/></SPAN>
- <SPAN class="code-tag"><constructor-arg index=<SPAN
class="code-quote">"2"</SPAN> value=<SPAN
class="code-quote">"false"</SPAN>/></SPAN>
-<SPAN class="code-tag"></bean></SPAN>
-<SPAN class="code-tag"></beans></SPAN></PRE>
-</DIV></DIV>
-
-<P>Constructor arg zero is the rootPath;<BR>
-constructor arg one is the namespace; and<BR>
-constructor arg two is an optional boolean value that if true will output
stacktraces of the error messages into the fault xml.</P></DIV>
+<PRE class="code-xml"><SPAN class="code-tag"><bean id=<SPAN
class="code-quote">"messageAggregatingErrorHandlerFactory"</SPAN>
class=<SPAN
class="code-quote">"org.apache.servicemix.components.validation.MessageAggregatingErrorHandlerFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"rootPath"</SPAN> value=<SPAN
class="code-quote">"Fault/payload/messages"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"namespace"</SPAN> value=<SPAN
class="code-quote">"http://www.servicemix.org/fault"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN
class="code-quote">"includeStackTraces"</SPAN> value=<SPAN
class="code-quote">"false"</SPAN>/></SPAN>
+<SPAN class="code-tag"></bean></SPAN></PRE>
+</DIV></DIV>
+<P>Only the first two properties are mandatory, the includeStackTraces
property will default to false and is included in the above configuration to
highlight it's use. If it is set to true the error handler will
output stacktraces of the error messages into the fault xml.</P></DIV>
</DIV>
</TD>
@@ -174,13 +163,13 @@
</DIV>
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
- last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=gmcdonald">Grant
McDonald</A> on Aug 16, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=1940&originalId=9680">view
change</A>)
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=gmcdonald">Grant
McDonald</A> on Oct 06, 2006
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=1940&originalId=14002">view
change</A>)
<SPAN id="show" class="inline-control-link"><A href=""
onclick="showComment(); return false;">show comment</A></SPAN>
<SPAN id="hide" class="inline-control-link" style="display:none;"><A
href="" onclick="hideComment(); return false;">hide comment</A></SPAN>
<DIV id="versionComment" class="noteMacro" style="display:none;
padding: 5px;">
<B>Comment:</B>
- Updated Validation wiki entry to provide documentation on new error
handling implementation<BR>
+ Updated doco to use factory implementation<BR>
<SPAN class="smalltext"><A
href="http://goopen.org/confluence/pages/viewpreviouspageversions.action?pageId=1940">View
page history</A></SPAN>
</DIV>