You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2006/11/05 23:07:58 UTC
svn commit: r471543 - in /incubator/servicemix/site/main: xfire.html
xslt.html xsql.html
Author: chirino
Date: Sun Nov 5 14:07:57 2006
New Revision: 471543
URL: http://svn.apache.org/viewvc?view=rev&rev=471543
Log:
Latest export from confluence
Modified:
incubator/servicemix/site/main/xfire.html
incubator/servicemix/site/main/xslt.html
incubator/servicemix/site/main/xsql.html
Modified: incubator/servicemix/site/main/xfire.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/xfire.html?view=diff&rev=471543&r1=471542&r2=471543
==============================================================================
--- incubator/servicemix/site/main/xfire.html (original)
+++ incubator/servicemix/site/main/xfire.html Sun Nov 5 14:07:57 2006
@@ -36,7 +36,7 @@
<TR>
<TD align="left" valign="middle" nowrap="">
<DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components.html" title="Components">Components</A> > <A href="lightweight-components.html" title="Lightweight components">Lightweight components</A> > <A href="" title="XFire">XFire</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components-list.html" title="Components list">Components list</A> > <A href="lightweight-components.html" title="Lightweight components">Lightweight components</A> > <A href="" title="XFire">XFire</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -148,7 +148,13 @@
<SPAN class="code-tag"></bean></SPAN></PRE>
</DIV></DIV>
<P>Then, to expose your service on the JBI bus, register a JBI binding for the service:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"binding"</SPAN> service=<SPAN class="code-quote">"xfire:Echo"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.xfire.XFireBinding"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"xfire"</SPAN> ref=<SPAN class="code-quote">"xfire"</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>
<H3><A name="XFire-LocationoftheServiceMixXFireComponents"></A>Location of the ServiceMix XFire Components</H3>
@@ -174,8 +180,8 @@
</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=gnodet">Guillaume Nodet</A> on Aug 08, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2111&originalId=9592">view change</A>)
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Nov 08, 2006
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2111&originalId=14813">view change</A>)
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=2111">edit page</A>)
</DIV>
Modified: incubator/servicemix/site/main/xslt.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/xslt.html?view=diff&rev=471543&r1=471542&r2=471543
==============================================================================
--- incubator/servicemix/site/main/xslt.html (original)
+++ incubator/servicemix/site/main/xslt.html Sun Nov 5 14:07:57 2006
@@ -36,7 +36,7 @@
<TR>
<TD align="left" valign="middle" nowrap="">
<DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components.html" title="Components">Components</A> > <A href="lightweight-components.html" title="Lightweight components">Lightweight components</A> > <A href="" title="XSLT">XSLT</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components-list.html" title="Components list">Components list</A> > <A href="lightweight-components.html" title="Lightweight components">Lightweight components</A> > <A href="" title="XSLT">XSLT</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -121,26 +121,78 @@
<H3><A name="XSLT-Example"></A>Example</H3>
-<P>There is an <SPAN class="nobr"><A href="http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/example.xml?view=co" title="Visit page outside Confluence" rel="nofollow">example<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> which demonstates a pipeline from a message source, to a transformation, to send the message along with tracing the operation.</P>
+<P>There is an <SPAN class="nobr"><A href="http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-components/src/test/resources/org/apache/servicemix/components/xslt/example.xml?view=co" title="Visit page outside Confluence" rel="nofollow">example<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> which demonstates a pipeline from a message source, to a transformation, to send the message along with tracing the operation.</P>
<H4><A name="XSLT-ReceivingthemessagefromaJMStopic"></A>Receiving the message from a JMS topic</H4>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"myJmsReceiver"</SPAN> service=<SPAN class="code-quote">"foo:myJmsReceiver"</SPAN> destinationService=<SPAN class="code-quote">"foo:transformer"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.jms.JmsReceiverComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN class="code-quote">"test.org.apache.servicemix.components.xslt.source"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"pubSubDomain"</SPAN> value=<SPAN class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></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> </P>
<H4><A name="XSLT-TransformingthemessageusingXSLT"></A>Transforming the message using XSLT</H4>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"transformer"</SPAN> service=<SPAN class="code-quote">"foo:transformer"</SPAN> destinationService=<SPAN class="code-quote">"foo:transformedSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.xslt.XsltComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"xsltResource"</SPAN> value=<SPAN class="code-quote">"classpath:org/apache/servicemix/components/xslt/transform.xsl"</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> </P>
<H4><A name="XSLT-SendingtheresulttoadifferentJMStopic"></A>Sending the result to a different JMS topic</H4>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"myJmsSender"</SPAN> service=<SPAN class="code-quote">"foo:myJmsSender"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.jms.JmsSenderComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN class="code-quote">"test.org.apache.servicemix.components.xslt.source"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"pubSubDomain"</SPAN> value=<SPAN class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></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> </P>
<H4><A name="XSLT-Subscribingtothetopicandpipeliningittoatracecomponenttodemonstratethepipelineworking"></A>Subscribing to the topic and pipelining it to a trace component to demonstrate the pipeline working</H4>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"jmsTrace"</SPAN> service=<SPAN class="code-quote">"foo:jmsTrace"</SPAN> destinationService=<SPAN class="code-quote">"foo:trace"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.jms.JmsReceiverComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"template"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.springframework.jms.core.JmsTemplate"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"connectionFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><ref local=<SPAN class="code-quote">"jmsFactory"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"defaultDestinationName"</SPAN> value=<SPAN class="code-quote">"test.org.apache.servicemix.components.xslt.result"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"pubSubDomain"</SPAN> value=<SPAN class="code-quote">"true"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></SPAN>
+ <SPAN class="code-tag"></bean></SPAN><SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></SPAN>
+
+<SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"trace"</SPAN> service=<SPAN class="code-quote">"foo:trace"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.apache.servicemix.components.util.TraceComponent"</SPAN>/></SPAN><SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></SPAN></PRE>
+</DIV></DIV>
<P> </P></DIV>
</DIV>
@@ -151,8 +203,8 @@
</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=bsnyder">Bruce Snyder</A> on Jul 06, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2039&originalId=8969">view change</A>)
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Nov 08, 2006
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2039&originalId=14814">view change</A>)
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=2039">edit page</A>)
</DIV>
Modified: incubator/servicemix/site/main/xsql.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/xsql.html?view=diff&rev=471543&r1=471542&r2=471543
==============================================================================
--- incubator/servicemix/site/main/xsql.html (original)
+++ incubator/servicemix/site/main/xsql.html Sun Nov 5 14:07:57 2006
@@ -36,7 +36,7 @@
<TR>
<TD align="left" valign="middle" nowrap="">
<DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components.html" title="Components">Components</A> > <A href="lightweight-components.html" title="Lightweight components">Lightweight components</A> > <A href="" title="XSQL">XSQL</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components-list.html" title="Components list">Components list</A> > <A href="lightweight-components.html" title="Lightweight components">Lightweight components</A> > <A href="" title="XSQL">XSQL</A>
</DIV>
</TD>
<TD align="right" valign="middle" nowrap="">
@@ -113,8 +113,7 @@
<!--
<div class="pagetitle">XSQL</div>
-->
- <DIV class="wiki-content">
-<P><SPAN class="nobr"><A href="http://www.oracle.com/technology/tech/xml/xdkhome.html" title="Visit page outside Confluence" rel="nofollow">XSQL<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> is Oracle's tool for turning SQL queries into XML or for taking XML and insert/updating it into a database. This can be a handy tool when you wish to either enrich or expose SQL data to an ESB or extract part of an XML document and persist it into a database.</P>
+ <DIV class="wiki-content"><P><SPAN class="nobr"><A href="http://www.oracle.com/technology/tech/xml/xdkhome.html" title="Visit page outside Confluence" rel="nofollow">XSQL<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> is Oracle's tool for turning SQL queries into XML or for taking XML and insert/updating it into a database. This can be a handy tool when you wish to either enrich or expose SQL data to an ESB or extract part of an XML document and persist it into a database.</P>
<P>Note that XSQL is quite simple, but useful. If you want something more complex and powerful you might want to look at using a <A href="scripting.html" title="Scripting">scripting</A> language like <A href="groovy.html" title="Groovy">Groovy</A>.</P>
@@ -122,7 +121,11 @@
<P>Firstly here is an example XSQL document. As you can see its a piece of XML which allows embedded SQL statements inside it.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><xsql:query <SPAN class="code-keyword">xmlns:xsql</SPAN>='urn:oracle-xsql' connection='demo' tag-case='lower' row-element='cheese' rowset-element='food'></SPAN>
+ select * from cheese
+<SPAN class="code-tag"></xsql:query></SPAN></PRE>
+</DIV></DIV>
<P>This example page could produce something like...</P>
@@ -145,11 +148,18 @@
<P>Then we can convert this into a JBI component and apply it in a pipeline as follows...</P>
-<P><B>ServiceMix 1.1 Version</B> : </P>
-
-
-<P><B>ServiceMix 2.0+ Version</B> : </P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag"><sm:activationSpec componentName=<SPAN class="code-quote">"xsql"</SPAN> service=<SPAN class="code-quote">"foo:xsql"</SPAN> endpoint=<SPAN class="code-quote">"xsql"</SPAN> destinationService=<SPAN class="code-quote">"foo:receiver"</SPAN>></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN><SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.servicemix.components.xsql.XSQLComponent"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"xsqlResource"</SPAN> value=<SPAN class="code-quote">"classpath:org/servicemix/components/xsql/example.xsql"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"connectionManagerFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><bean class=<SPAN class="code-quote">"org.servicemix.components.xsql.DataSourceXSQLConnectionManagerFactory"</SPAN>></SPAN>
+ <SPAN class="code-tag"><property name=<SPAN class="code-quote">"dataSource"</SPAN> ref=<SPAN class="code-quote">"dataSource"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></bean></SPAN>
+ <SPAN class="code-tag"></property></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>There are 2 main modes of operation for this component</P>
@@ -169,8 +179,8 @@
</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=gnodet">Guillaume Nodet</A> on May 11, 2006
- (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2013&originalId=5180">view change</A>)
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Nov 08, 2006
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=2013&originalId=14815">view change</A>)
(<A href="http://goopen.org/confluence/pages/editpage.action?pageId=2013">edit page</A>)
</DIV>