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/09/07 16:16:48 UTC
svn commit: r441090 [2/4] - in /incubator/servicemix/site/sm30ug: ./
5-jbi.data/ basic.data/ file-binding.data/ resources/ rss-binding.data/
Added: incubator/servicemix/site/sm30ug/4-examples.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/4-examples.html?view=auto&rev=441090
==============================================================================
--- incubator/servicemix/site/sm30ug/4-examples.html (added)
+++ incubator/servicemix/site/sm30ug/4-examples.html Thu Sep 7 07:16:46 2006
@@ -0,0 +1,294 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+ <HEAD>
+<!--
+ Pier's plugin always overwrites the stylesheet so lets explicitly use another one
+ <link type="text/css" rel="stylesheet" href="autoexport:///SM30UG/resources/space.css">
+-->
+ <LINK type="text/css" rel="stylesheet" href="resources/site.css">
+ <SCRIPT src="resources/space.js" type="text/javascript"></SCRIPT>
+ <TITLE>
+4. Examples
+ </TITLE>
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+ <BODY onload="init()">
+
+ <!-- Banner -->
+ <DIV id="site-banner">
+ </DIV>
+
+ <!-- Bread crumbs and Quick Links -->
+ <DIV id="site-navbar">
+ <TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
+ <TR>
+ <TD align="left" valign="middle" nowrap="">
+ <DIV id="site-breadcrumbs">
+<A href="users-guide.html" title="ServiceMix 3.0 User Guide">ServiceMix 3.0 User Guide</A> > <A href="users-guide.html" title="User's Guide">User's Guide</A> > <A href="" title="4. Examples">4. Examples</A>
+ </DIV>
+ </TD>
+ <TD align="right" valign="middle" nowrap="">
+ <DIV id="site-quicklinks">
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+
+<!-- Integrate google search later.
+ <form name="search" action="http://www.google.com/search" method="get">
+ <input type="hidden" name="ie" value="UTF- 8" />
+ <input type="hidden" name="oe" value="UTF- 8" />
+ <input type="hidden" name="domains" value="" />
+ <input type="hidden" name="sitesearch" value="" />
+ <input type="text" name="q" maxlength="255" value="" />
+ <input type="submit" name="btnG" value="Google Search" />
+ </form>
+-->
+
+ <DIV id="site-content">
+ <TABLE>
+ <TR>
+ <TD valign="top">
+ <DIV id="site-navigation">
+ </DIV>
+ </TD>
+ <TD valign="top">
+ <DIV id="site-page">
+
+<!--
+ <div class="pagetitle">4. Examples</div>
+-->
+ <DIV class="wiki-content"><STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD class="ScrollbarPrevIcon"><A href="3-installation.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/back_16.gif" width="16" height="16"></A></TD><TD width="33%" class="ScrollbarPrevName"><A href="3-installation.html">3. Installation</A> </TD><TD width="33%" class="ScrollbarParent"><SUP><A href="users-guide.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif" width="8" height="8"></A></SUP><A href="users-guide.html">User's Guide</A></TD><TD width="33%" class="ScrollbarNextName"> <A href="5-jbi.html">5. JBI</A></TD><TD class="ScrollbarNextIcon"><A href="5-jbi.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/forwd_16.gif" width="16" height="16"></A></TD></TR></TABLE></DIV>
+<P><A name="4.Examples-top"></A></P>
+
+<H1><A name="4.Examples-4.Examples"></A>4. Examples</H1>
+
+<P>ServiceMix distribution comes with several examples categories. The following sections of this document will help you understanding the differences between these examples and explain alternative methods to start them.</P>
+<UL>
+ <LI><A href="#4.Examples-JBIpackaging" title="JBI packaging on 4. Examples">JBI packaging</A></LI>
+ <LI><A href="#4.Examples-StaticconfigurationusingMaven" title="Static configuration using Maven on 4. Examples">Static configuration using Maven</A></LI>
+ <LI><A href="#4.Examples-StaticconfigurationusingAnt" title="Static configuration using Ant on 4. Examples">Static configuration using Ant</A></LI>
+ <LI><A href="#4.Examples-Webapplication" title="Web application on 4. Examples">Web application</A></LI>
+</UL>
+
+
+<P>Here are the examples shipped with ServiceMix:</P>
+<UL>
+ <LI><A href="basic.html" title="Basic">Basic</A></LI>
+ <LI><A href="bridge.html" title="Bridge">Bridge</A></LI>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=Cluster&linkCreation=true&fromPageId=13490" title="Create Page: Cluster" class="createlink">Cluster<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="file-binding.html" title="File Binding">File Binding</A></LI>
+ <LI><A href="loan-broker.html" title="Loan Broker">Loan Broker</A></LI>
+ <LI><A href="loan-broker-bpel.html" title="Loan Broker BPEL">Loan Broker BPEL</A></LI>
+ <LI><A href="rss-binding.html" title="RSS Binding">RSS Binding</A></LI>
+ <LI><A href="vfs-binding.html" title="VFS Binding">VFS Binding</A></LI>
+ <LI><A href="wsdl-first.html" title="WSDL First">WSDL First</A></LI>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20Clustered&linkCreation=true&fromPageId=13490" title="Create Page: WS-Notification Clustered" class="createlink">WS-Notification Clustered<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20HTTP%20Binding&linkCreation=true&fromPageId=13490" title="Create Page: WS-Notification HTTP Binding" class="createlink">WS-Notification HTTP Binding<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<P><A href="#4.Examples-top" title="top on 4. Examples">top</A></P>
+
+<H2><A name="4.Examples-JBIpackagingusingMaven"></A>JBI packaging using Maven</H2>
+
+<P>The following examples use the standard JBI packaging:</P>
+<UL>
+ <LI><A href="bridge.html" title="Bridge">Bridge</A></LI>
+ <LI><A href="loan-broker-bpel.html" title="Loan Broker BPEL">Loan Broker BPEL</A></LI>
+ <LI><A href="wsdl-first.html" title="WSDL First">WSDL First</A></LI>
+</UL>
+
+
+<H3><A name="4.Examples-Deploymentusingmaven"></A>Deployment using maven</H3>
+
+<P>You will need a ServiceMix server running to deploy this assembly. From the distribution root directory, launch:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]
+bin/servicemix</PRE>
+</DIV></DIV>
+<P>Using maven, you can launch the following command to build the Service Assembly:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]/examples/wsdl-first
+mvn install</PRE>
+</DIV></DIV>
+<P>Then, you can deploy the Service Assembly along with the needed JBI components on an <B>already started</B> ServiceMix container:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]/examples/wsdl-first/wsdl-first-sa
+mvn jbi:projectDeploy</PRE>
+</DIV></DIV>
+
+<H3><A name="4.Examples-Manualdeployment"></A>Manual deployment</H3>
+
+<P>These examples comes with a pre-built service assembly that you can deploy manually.</P>
+
+<P>First, start a ServiceMix server:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]
+bin/servicemix</PRE>
+</DIV></DIV>
+<P>Install the needed components and shared libraries:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]/components
+cp servicemix-shared* ../install
+cp xxx* ../install</PRE>
+</DIV></DIV>
+<P>The servicemix-shared artifact is a shared library needed by all JBI components. After copying it, you can copy all the needed components to the <B>install</B> directory of ServiceMix.</P>
+
+<P>From another console, launch the following commands:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]/examples/wsdl-first/wsdl-first-sa
+cp xxx-sa-3.0-incubating.zip [servicemix_install_dir]/deploy</PRE>
+</DIV></DIV>
+
+<H3><A name="4.Examples-Antdeployment"></A>Ant deployment</H3>
+
+<P>You can also use the ant tasks to deploy the JBI artifacts:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]/components
+
+ant -f ../ant/servicemix-ant-task.xml \
+ -Dsm.username=smx \
+ -Dsm.password=smx \
+ -Dsm.install.file=servicemix-shared-3.0-incubating.zip
+ install-shared-library
+
+ant -f ../ant/servicemix-ant-task.xml \
+ -Dsm.username=smx \
+ -Dsm.password=smx \
+ -Dsm.install.file=servicemix-http-3.0-incubating.zip
+ install-component
+
+ant -f ../ant/servicemix-ant-task.xml \
+ -Dsm.username=smx \
+ -Dsm.password=smx \
+ -Dsm.component.name=servicemix-http \
+ start-component</PRE>
+</DIV></DIV>
+<P>You need to launch the <B>install-component</B> and <B>start-component</B> tasks for each needed component.</P>
+
+<P>Then, you can deploy the service assembly:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]/examples/wsdl-first/
+
+ant -f ../../ant/servicemix-ant-task.xml \
+ -Dsm.username=smx \
+ -Dsm.password=smx \
+ -Dsm.deploy.file=wsdl-first-sa-3.0-incubating.zip
+ deploy-service-assembly</PRE>
+</DIV></DIV>
+<P><A href="#4.Examples-top" title="top on 4. Examples">top</A></P>
+
+<H2><A name="4.Examples-StaticconfigurationusingMaven"></A>Static configuration using Maven</H2>
+
+<P>These examples use <SPAN class="nobr"><A href="http://maven.apache.org/" title="Visit page outside Confluence" rel="nofollow">Maven<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 the jbi-maven-plugin from ServiceMix to start a new ServiceMix instance using a static ServiceMix configuration file.</P>
+<UL>
+ <LI><A href="basic.html" title="Basic">Basic</A></LI>
+</UL>
+
+
+<P><A href="#4.Examples-top" title="top on 4. Examples">top</A></P>
+
+<H2><A name="4.Examples-JBIpackagingusingAnt"></A>JBI packaging using Ant</H2>
+
+<P>This distribution includes example showing how to build a Service Assembly using <SPAN class="nobr"><A href="http://ant.apache.org/" title="Visit page outside Confluence" rel="nofollow">Ant<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>
+<UL>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20HTTP%20Binding&linkCreation=true&fromPageId=13490" title="Create Page: WS-Notification HTTP Binding" class="createlink">WS-Notification HTTP Binding<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="loan-broker.html" title="Loan Broker">Loan Broker</A></LI>
+</UL>
+
+
+<P><A href="#4.Examples-top" title="top on 4. Examples">top</A></P>
+
+<H2><A name="4.Examples-StaticconfigurationusingAnt"></A>Static configuration using Ant</H2>
+
+<P>There are also a few examples that use <SPAN class="nobr"><A href="http://ant.apache.org/" title="Visit page outside Confluence" rel="nofollow">Ant<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> to build the example.</P>
+<UL>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=Cluster&linkCreation=true&fromPageId=13490" title="Create Page: Cluster" class="createlink">Cluster<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><A href="file-binding.html" title="File Binding">File Binding</A></LI>
+ <LI><A href="rss-binding.html" title="RSS Binding">RSS Binding</A></LI>
+ <LI><A href="vfs-binding.html" title="VFS Binding">VFS Binding</A></LI>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=WS-Notification%20Clustered&linkCreation=true&fromPageId=13490" title="Create Page: WS-Notification Clustered" class="createlink">WS-Notification Clustered<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<P><A href="#4.Examples-top" title="top on 4. Examples">top</A></P>
+
+<H2><A name="4.Examples-Webapplication"></A>Web application</H2>
+
+<UL>
+ <LI><SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=servicemix-web&linkCreation=true&fromPageId=13490" title="Create Page: servicemix-web" class="createlink">servicemix-web<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+</UL>
+
+
+<P><A href="#4.Examples-top" title="top on 4. Examples">top</A></P>
+<STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD class="ScrollbarPrevIcon"><A href="3-installation.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/back_16.gif" width="16" height="16"></A></TD><TD width="33%" class="ScrollbarPrevName"><A href="3-installation.html">3. Installation</A> </TD><TD width="33%" class="ScrollbarParent"><SUP><A href="users-guide.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif" width="8" height="8"></A></SUP><A href="users-guide.html">User's Guide</A></TD><TD width="33%" class="ScrollbarNextName"> <A href="5-jbi.html">5. JBI</A></TD><TD class="ScrollbarNextIcon"><A href="5-jbi.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/forwd_16.gif" width="16" height="16"></A></TD></TR></TABLE></DIV></DIV>
+
+ <!--
+ <div class="tabletitle">
+ Children
+ <span class="smalltext" id="show" style="display: inline;">
+ <a href="javascript:showChildren()">Show Children</a></span>
+ <span class="smalltext" id="hide" style="display: none;">
+ <a href="javascript:hideChildren()">Hide Children</a></span>
+ </div>
+ <div class="greybox" id="children" style="display: none;">
+ <a href="http://goopen.org/confluence/display/SM30UG/WSDL+First" title="WSDL First">WSDL First</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/VFS+Binding" title="VFS Binding">VFS Binding</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/RSS+Binding" title="RSS Binding">RSS Binding</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/Loan+Broker+BPEL" title="Loan Broker BPEL">Loan Broker BPEL</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/Loan+Broker" title="Loan Broker">Loan Broker</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/File+Binding" title="File Binding">File Binding</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/Bridge" title="Bridge">Bridge</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ <a href="http://goopen.org/confluence/display/SM30UG/Basic" title="Basic">Basic</a>
+ <span class="smalltext">(ServiceMix 3.0 User Guide)</span>
+ <br>
+ </div>
+-->
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </DIV>
+ <DIV id="site-footer">
+ Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A>,
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Sep 06, 2006
+
+ (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=13490">edit page</A>)
+ </DIV>
+
+ </BODY>
+
+</HTML>
\ No newline at end of file
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_architecture.jpg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_architecture.jpg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_architecture.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_architecture.jpg.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_architecture.jpg.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_architecture.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_decoupling.jpg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_decoupling.jpg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_decoupling.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_decoupling.jpg.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_decoupling.jpg.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_decoupling.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_invocation.jpg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_invocation.jpg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_invocation.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_invocation.jpg.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_invocation.jpg.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_invocation.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_plugin_framework.png
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_plugin_framework.png?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_plugin_framework.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_plugin_framework.png.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_plugin_framework.png.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_plugin_framework.png.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_wsdl_messaging_model.jpg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_wsdl_messaging_model.jpg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_wsdl_messaging_model.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_wsdl_messaging_model.jpg.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.data/jbi_wsdl_messaging_model.jpg.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/5-jbi.data/jbi_wsdl_messaging_model.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/5-jbi.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/5-jbi.html?view=auto&rev=441090
==============================================================================
--- incubator/servicemix/site/sm30ug/5-jbi.html (added)
+++ incubator/servicemix/site/sm30ug/5-jbi.html Thu Sep 7 07:16:46 2006
@@ -0,0 +1,420 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+ <HEAD>
+<!--
+ Pier's plugin always overwrites the stylesheet so lets explicitly use another one
+ <link type="text/css" rel="stylesheet" href="autoexport:///SM30UG/resources/space.css">
+-->
+ <LINK type="text/css" rel="stylesheet" href="resources/site.css">
+ <SCRIPT src="resources/space.js" type="text/javascript"></SCRIPT>
+ <TITLE>
+5. JBI
+ </TITLE>
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+ <BODY onload="init()">
+
+ <!-- Banner -->
+ <DIV id="site-banner">
+ </DIV>
+
+ <!-- Bread crumbs and Quick Links -->
+ <DIV id="site-navbar">
+ <TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
+ <TR>
+ <TD align="left" valign="middle" nowrap="">
+ <DIV id="site-breadcrumbs">
+<A href="users-guide.html" title="ServiceMix 3.0 User Guide">ServiceMix 3.0 User Guide</A> > <A href="users-guide.html" title="User's Guide">User's Guide</A> > <A href="" title="5. JBI">5. JBI</A>
+ </DIV>
+ </TD>
+ <TD align="right" valign="middle" nowrap="">
+ <DIV id="site-quicklinks">
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+
+<!-- Integrate google search later.
+ <form name="search" action="http://www.google.com/search" method="get">
+ <input type="hidden" name="ie" value="UTF- 8" />
+ <input type="hidden" name="oe" value="UTF- 8" />
+ <input type="hidden" name="domains" value="" />
+ <input type="hidden" name="sitesearch" value="" />
+ <input type="text" name="q" maxlength="255" value="" />
+ <input type="submit" name="btnG" value="Google Search" />
+ </form>
+-->
+
+ <DIV id="site-content">
+ <TABLE>
+ <TR>
+ <TD valign="top">
+ <DIV id="site-navigation">
+ </DIV>
+ </TD>
+ <TD valign="top">
+ <DIV id="site-page">
+
+<!--
+ <div class="pagetitle">5. JBI</div>
+-->
+ <DIV class="wiki-content"><STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD class="ScrollbarPrevIcon"><A href="4-examples.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/back_16.gif" width="16" height="16"></A></TD><TD width="33%" class="ScrollbarPrevName"><A href="4-examples.html">4. Examples</A> </TD><TD width="33%" class="ScrollbarParent"><SUP><A href="users-guide.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif" width="8" height="8"></A></SUP><A href="users-guide.html">User's Guide</A></TD><TD width="33%" class="ScrollbarNextName"> </TD></TR></TABLE></DIV>
+<P><A name="5.JBI-top"></A></P>
+
+<H1><A name="5.JBI-5.JBI"></A>5. JBI</H1>
+
+<DIV>
+<UL>
+ <LI><A href="#5.JBI-Overview">Overview</A>
+<UL>
+ <LI><A href="#5.JBI-WhatisJBI%253F">What is JBI ?</A></LI>
+ <LI><A href="#5.JBI-JBIArchitecture">JBI Architecture</A></LI>
+</UL></LI>
+ <LI><A href="#5.JBI-WSDLmessagingmodel">WSDL messaging model</A>
+<UL>
+ <LI><A href="#5.JBI-Abstractmodel">Abstract model</A></LI>
+ <LI><A href="#5.JBI-Concretemodel">Concrete model</A></LI>
+</UL></LI>
+ <LI><A href="#5.JBI-NormalizedMessageRouter">Normalized Message Router</A>
+<UL>
+ <LI><A href="#5.JBI-Consumersandproviders">Consumers and providers</A></LI>
+ <LI><A href="#5.JBI-Normalizedmessage">Normalized message</A></LI>
+ <LI><A href="#5.JBI-DeliveryChannel">Delivery Channel</A></LI>
+ <LI><A href="#5.JBI-Endpointactivation">Endpoint activation</A></LI>
+ <LI><A href="#5.JBI-ServiceinvocationandMEP">Service invocation and MEP</A></LI>
+ <LI><A href="#5.JBI-Endpoints">Endpoints</A></LI>
+</UL></LI>
+ <LI><A href="#5.JBI-Invocationexample">Invocation example</A></LI>
+ <LI><A href="#5.JBI-JBIpackaging">JBI packaging</A></LI>
+ <LI><A href="#5.JBI-Othermaterials">Other materials</A></LI>
+</UL></DIV>
+
+<H2><A name="5.JBI-Overview"></A>Overview</H2>
+
+<H3><A name="5.JBI-WhatisJBI%3F"></A>What is JBI ?</H3>
+
+<TABLE class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%"><TBODY><TR>
+<TD class="confluenceTd" valign="top">
+
+<P>JBI is a java based standard to build integrations systems by using plug-in components which interoperates through mediated normalized message exchanges.<BR>
+The message exchange model is based on the web services description language (WSDL).</P>
+
+<P>The figure at the top shows a high level concept of JBI of the plug-in framework. The JBI environment provides interfaces to be used by plug-in components, while the components provides interfaces used by the JBI environment. Components do not interact with each other directly. Instead, as shown in the bottom figure, JBI acts as an intermediary to route messages between components. This separation is the key to decoupling between service providers and consumers, which is one of the goal of service oriented architectures. In addition, it provides a key point for message processing and monitoring.</P>
+
+<P>In this WSDL-based, service-oriented model, JBI plug-in components are responsible for providing and consuming services. By providing a service, a component is making available a function or functions that can be consumed by other components (or even itself). Such functions are modeled as WSDL 2.0 operations, which involve the exchange of one or more messages. A set of four WSDL-defined, basic message exchange patterns (MEPs) crisply defines the sequence of messages allowed during execution of an operation. This shared understanding, between consumer and provider components, of the message exchange pattern is the foundation of interoperability of such components in JBI.</P>
+
+<P>The services provided by components (if any) are described to JBI by the component, using WSDL 1.1 or 2.0. This provides an abstract, technology-neutral model of services using XML-based message exchanges. WSDL also provides a mechanism for declaring additional service metadata of interest to service consumers and JBI itself. Components can query JBI for the for the WSDL describing available services.</P>
+</TD>
+<TD class="confluenceTd" valign="top">
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; background-color: #ffffff; "><B>JBI plugin framework</B></DIV><DIV class="panelContent" style="background-color: #ffffff; ">
+<P><DIV align="center"><IMG src="5-jbi.data/jbi_plugin_framework.png" border="0"></DIV></P>
+</DIV></DIV>
+
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; background-color: #ffffff; "><B>JBI decoupling</B></DIV><DIV class="panelContent" style="background-color: #ffffff; ">
+<P><DIV align="center"><IMG src="5-jbi.data/jbi_decoupling.jpg" border="0"></DIV></P>
+</DIV></DIV></TD></TR></TBODY></TABLE>
+
+<H3><A name="5.JBI-JBIArchitecture"></A>JBI Architecture</H3>
+
+<TABLE class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%"><TBODY><TR>
+<TD class="confluenceTd" valign="top">
+
+<P>This picture describes the architecture of the JBI system.</P>
+<UL>
+ <LI>The JBI environment provides deployment, control & monitoring features through JMX based administration tools</LI>
+ <LI>The Normalized Message Router or NMR, which provides the mediated message exchange infrastructure</LI>
+ <LI>Components (in white rectangles)</LI>
+</UL>
+
+
+<P>Components are divided in two categories:</P>
+<UL>
+ <LI>Service Engines (on top) provides business logic and transformation services and also consumes such services.</LI>
+ <LI>Binding Components provide connectivity to services external to the JBI environment.<BR>
+Service engines and binding components can function as service providers, consumers, or both. Note that the distinction between SEs and BCs is purely pragmatic, but the separation of business logic from communications logic reduces complexity and increases flexibility.</LI>
+</UL>
+
+
+<P>The JBI environment, in addition to the messaging system, defines a management structure based on JMX which provides standard mechanisms for:</P>
+<UL>
+ <LI>Installing components</LI>
+ <LI>Managing a component's life cycle (start / stop)</LI>
+ <LI>Deploying service artifacts to components<BR>
+JBI components often function as a type of container to which artifacts can be deployed to add new service or provider logic. For example, a service engine that provides XSLT-based transformation services would have XSLT style sheets deployed to it, in order to add new transformation operations. This process of adding such component-specific artifacts to an installed component is called deployment, to distinguish it from component installation. Such an artifact is called a service unit, while collection of deployment artifacts and associated metadata is called a service assembly.</LI>
+</UL>
+
+
+<P>The core message exchange concept implements WSDL messaging. Service requests are generated by consumer components, routed by the NMR, and delivered to a provider component. For example, the BPEL SE may generate a request, which happens to be provided by the external service provider connected to the WS-I BC. The NMR will route the request to the WS-I binding. The SE in this case is a service consumer, and the BC a provider.</P>
+</TD>
+<TD class="confluenceTd" valign="top">
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; background-color: #ffffff; "><B>JBI Architecture</B></DIV><DIV class="panelContent" style="background-color: #ffffff; ">
+<P><DIV align="center"><IMG src="5-jbi.data/jbi_architecture.jpg" border="0"></DIV></P>
+</DIV></DIV></TD></TR></TBODY></TABLE>
+<P><A href="#5.JBI-top" title="top on 5. JBI">top</A></P>
+
+<H2><A name="5.JBI-WSDLmessagingmodel"></A>WSDL messaging model</H2>
+
+<TABLE class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%"><TBODY><TR>
+<TD class="confluenceTd" valign="top">
+
+<P>JBI models services produced and consumed by components using Web Service Description Language 1.1 or 2.0. When the terminology differs between the two version, the 2.0 one is used. This is mainly the case for the interface and endpoint terms, which are called respectively "port type" and "port" in WSDL 1.1.</P>
+
+<P>WSDL provides a declarative model of message-based services on two levels:</P>
+<UL>
+ <LI>The <A href="#5.JBI-Abstractmodel" title="Abstract model on 5. JBI"><B>abstract model</B></A> defines services without references to a particular protocol or wire encoding</LI>
+ <LI>The <A href="#5.JBI-Concretemodel" title="Concrete model on 5. JBI"><B>concrete model</B></A> is bound to a particular communication protocol and communications endpoint</LI>
+</UL>
+
+
+<P>JBI uses the abstract service model as the main basis for component interactions. Components play one of two roles in such interactions:</P>
+<UL>
+ <LI><B>Service provider</B>. The component that performs the given service (either directly or as a proxy for an external provider)</LI>
+ <LI><B>Service consumer</B>. The component that invokes a given service (either directly or as a proxy for an external consumer)</LI>
+</UL>
+
+</TD>
+<TD class="confluenceTd" valign="top">
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; background-color: #ffffff; "><B>WSDL Messaging Model</B></DIV><DIV class="panelContent" style="background-color: #ffffff; ">
+<P><DIV align="center"><IMG src="5-jbi.data/jbi_wsdl_messaging_model.jpg" border="0"></DIV></P>
+</DIV></DIV></TD></TR></TBODY></TABLE>
+
+<H3><A name="5.JBI-Abstractmodel"></A>Abstract model</H3>
+
+<P>JBI models services produced and consumed by components using Web Service Description Language 1.1 or 2.0. When the terminology differs between the two version, the 2.0 one is used. This is mainly the case for the interface and endpoint terms, which are called respectively "port type" and "port" in WSDL 1.1.</P>
+
+<P>WSDL service description always include an abstract service model which defines:</P>
+<UL>
+ <LI><B>Message types</B> are defined using XML schema. These can be <B>normal</B> messages (for the expected use of the service) or <B>faults</B> (for abnormal processing conditions).</LI>
+ <LI><B>Operations</B> are interactions with a service defined in terms of normal and optional faults messages between a service consumer and a service provider. An operation is defined by:
+ <UL>
+ <LI>An <B>operation name</B> which is a qualified name</LI>
+ <LI>A <B>Message Exchange Pattern</B> (MEP) that describes the sequence, direction and cardinality of messages sent between the consumer and provider.</LI>
+ <LI><B>Message types</B> for each message in the MEP.</LI>
+ </UL>
+ </LI>
+ <LI><B>Interfaces</B> are collections of related operations. Note that this term is unrelated to the Java Language interface definition. An interface is defined by:
+ <UL>
+ <LI>An <B>interface name</B>: a qualified name identifying the service type globally</LI>
+ <LI>A set of <B>extended interfaces</B>. This is the same concept as in the Java Language. This means a service type may be composed of other service types.</LI>
+ </UL>
+ </LI>
+</UL>
+
+
+<P>JBI uses the abstract service model as the main basis for component interactions. Components play one of two roles in such interactions:</P>
+<UL>
+ <LI><B>Service provider</B>. The component that performs the given service (either directly or as a proxy for an external provider)</LI>
+ <LI><B>Service consumer</B>. The component that invokes a given service (either directly or as a proxy for an external consumer)</LI>
+</UL>
+
+
+<H3><A name="5.JBI-Concretemodel"></A>Concrete model</H3>
+
+<P>Concrete service descriptions in WSDL build upon the abstract service model, supplying information needed to "map" the abstract definition to a particular communications protocol and communications endpoint. JBI bases its component interaction model primarily on the abstract service model, thus giving it the desirable property of being communications protocol neutral. However, to be consistent with the WSDL service model, component interactions need to be defined using WSDL's concrete service model. In JBI this is a very simple model, using the abstract model "as is" wherever possible, thus creating a simple processing model for interacting components.</P>
+
+<P>The concrete service model defines the following items:</P>
+<UL>
+ <LI><B>Binding types</B>. A binding type identifies the type of protocol to which the service is being "bound".</LI>
+ <LI><B>Endpoints</B>. An endpoint designates the communications endpoint information needed by a service consumer to interact with a service provider, using a particular protocol. In JBI endpoints are pro forma; the only protocol used internally is the standard Java-based JBI messaging contracts, which do not involve the use of normal communications protocols at all. An endpoint definition includes the following items that are of interest to JBI:
+ <UL>
+ <LI><B>Endpoint name</B>. This is a simple name, used to designate the endpoint within its service.</LI>
+ <LI><B>Binding type</B>. This associates a binding type with an endpoint.</LI>
+ </UL>
+ </LI>
+ <LI><B>Service</B>. A service is a collection of endpoints that offer access to the same service. A service "implements" a particular service type (interface). A service has the following items:
+ <UL>
+ <LI><B>Service name</B>. A qualified name used to indicate the particular service implementation.</LI>
+ <LI><B>Service type name</B>. The name of the interface implemented by the service.</LI>
+ <LI><B>Endpoints</B>. The service "contains" one or more endpoints, which are the individual endpoints providing access to the concrete service.</LI>
+ </UL>
+ </LI>
+</UL>
+
+
+<P>Note that normally an endpoint is identified by the combination of its service name and its endpoint name. This combination is referred to as the <B>service endpoint</B>.</P>
+
+<P><A href="#5.JBI-top" title="top on 5. JBI">top</A></P>
+
+<H2><A name="5.JBI-NormalizedMessageRouter"></A>Normalized Message Router</H2>
+
+<P>The Normalized Message Router (or NMR) receives message exchanges from JBI components and routes them to the appropriate component for processing. This decouples the service producers from consumers and enable additional processing.</P>
+
+<H3><A name="5.JBI-Consumersandproviders"></A>Consumers and providers</H3>
+
+<P>JBI components (Service Engines and Binding Components) can act as a servicemix consumer, provider or both.<BR>
+The provider makes a WSDL-described service available through an endpoint. This service implements a WSDL interface, which is a collection of operations.<BR>
+The consumer can invoke the service by creating a message exchange that invoke a particular operation.<BR>
+Consumers and providers only share the abstract service definition and are thus decoupled, as the consumer does not know the protocol and location of the invoked service.<BR>
+Several services can implement the same WSDL interface so a consumer looking providers of an interface may find more than one endpoint</P>
+
+
+<H3><A name="5.JBI-Normalizedmessage"></A>Normalized message</H3>
+
+<P>JBI uses the concept of a normalized message for interactions between consumers and providers.<BR>
+A normalized message consists of three parts:</P>
+<UL>
+ <LI>A payload, which is an xml document that conforms to a WSDL message type without any protocol or encoding</LI>
+ <LI>Properties (or metadata) holds extra data associated with the message (security, transactions ...)</LI>
+ <LI>Attachments are arbitrary (non-xml) data that contain a data handler to manipulate them</LI>
+</UL>
+
+
+
+<H3><A name="5.JBI-DeliveryChannel"></A>Delivery Channel</H3>
+
+<P>A Delivery Channel is a bidirectional asynchronous communication pipes between a component and the NMR.<BR>
+A service consumer uses its delivery channel to initiate a service invocation, while the provider uses its delivery channel to receive such invocations.<BR>
+Each component is provided with a single delivery channel, so the same channel is used for both inbound and outbound communications.</P>
+
+
+<H3><A name="5.JBI-Endpointactivation"></A>Endpoint activation</H3>
+
+<P>Endpoint activation is the process by which a service provider tells the NMR that it provides services, making them known to the NMR so that it can route service invocations to that service.</P>
+
+<P>The activation is split in two steps"</P>
+<UL>
+ <LI>Declaring a service endpoint (service QName + endpoint name)</LI>
+ <LI>Providing metadata: the component has to provide a WSDL description of the activate endpoint<BR>
+The WSDL description will be used by the NMR to know which interfaces and operations are implemented by the activated endpoint.</LI>
+</UL>
+
+
+
+
+<H3><A name="5.JBI-ServiceinvocationandMEP"></A>Service invocation and MEP</H3>
+
+<P>Service invocation refers to an instance of an end-to-end interaction between a service consumer and a service provider.</P>
+
+<P>Four patterns are supported by JBI:</P>
+<UL>
+ <LI><B>In-Only</B>: consumer issues a request to provider with no error (fault) path provided.</LI>
+ <LI><B>Robust-In-Only</B>: consumer issues a request to provider. Provider may respond with a fault if it fails to process request.</LI>
+ <LI><B>In-Out</B>: consumer issues a request to provider, with expectation of response. Provider may respond with a fault if it fails to process request.</LI>
+ <LI><B>In-Optional-Out</B>: consumer issues a request to provider, which may result in a response. Consumer and provider both have the option of generating a fault in response to a message received during the interaction.</LI>
+</UL>
+
+
+<H3><A name="5.JBI-Endpoints"></A>Endpoints</H3>
+
+<P>JBI uses the same concept of endpoints as defined in WSDL 2.0.<BR>
+Endpoints refers to a particular address, accessible by a particular protocol, used to access a particular service.</P>
+
+<P>Endpoints have two distinct types:</P>
+<UL>
+ <LI><B>External endpoints</B> are endpoints outside the JBI environment. They are endpoints exposed by binding component acting as service consumers to expose an internal endpoint for the use of external service consumers</LI>
+ <LI><B>Internal endpoints</B> are exposed by service providers inside the JBI environment. They are accessed using the NMR APIs.</LI>
+</UL>
+
+
+<P>Binding components serve to map between internal and external endpoints. For example, an internal endpoint exposed outside the JBI environment by a binding component is mapped by the BC to an external provider endpoint for the use of external consumers.</P>
+
+<P>In JBI, endpoints are referred to (or addressed) in three distinct ways:</P>
+<UL>
+ <LI><B>Implicitly</B>: the NMR selects the endpoint based on the service type required</LI>
+ <LI><B>Explicitly</B>: a consumer chooses the endpoint based on its own logic and configuration</LI>
+ <LI><B>Dynamically</B>: an endpoint reference (EPR) is used within a message exchange to provide a " call-back" address that the service provider should use to send further message exchanges. EPRs are xml fragment created and resolved by JBI components.</LI>
+</UL>
+
+
+<H2><A name="5.JBI-Invocationexample"></A>Invocation example</H2>
+
+<P>This sequence diagram shows a InOut service invocation between a consumer and a provider.</P>
+
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; background-color: #ffffff; "><B>Invocation example</B></DIV><DIV class="panelContent" style="background-color: #ffffff; ">
+<P><DIV align="center"><IMG src="5-jbi.data/jbi_invocation.jpg" border="0"></DIV></P>
+</DIV></DIV>
+
+<OL>
+ <LI>The consumer creates an InOut message exchange, populates the "in" message (the request) and send it to the NMR</LI>
+ <LI>The provider component polls the delivery channel for an exchange</LI>
+ <LI>It processes the request, populates the "out" message and send it back to the NMR</LI>
+ <LI>The consumer polls the delivery channel for the response</LI>
+ <LI>It processes the response and mark the exchange as "done"</LI>
+ <LI>The provider receives the "done" status from the delivery channel</LI>
+</OL>
+
+
+<P>This example is an asynchronous invocation, but JBI also handles synchronous calls. In such a case, the consumer call to send would be a sendSync and would block the thread until the response is received. On the provider side, if the provider wish to synchronously deliver the response, the call to send (#3) would block until the consumer acks the response.</P>
+
+<P>When an exchange involves a binding component, either as a consumer or a provider, the same diagram applies. The difference is that the exchange creation would be triggered by an external request (a JMS message, or an HTTP request) before step #1 and send the response after step #4. If the provider is a binding component which proxies a remote service, it would invoke the service between the steps #2 and #3.</P>
+
+<P>People may wonder why there is a need for a "done" status... In JBI, all exchanges are terminated by either a "done" or an "error" status. Errors are different from faults which are parts of the normal exchange processing. So, the done status is very useful to implement reliable message, transactions or passing streams inside the exchange. <BR>
+Let's take the example a file binding component, which would poll for files, send the content as an InOnly request, and delete them afterwards. For performance reasons, it will send an opened stream on the file, but it has to close the stream and delete the file once processed. If the consumer is asynchronous (which is better because it saves threads), it needs a way to know when the file has to be deleted, hence the need for the "done" status.</P>
+
+<P><A href="#5.JBI-top" title="top on 5. JBI">top</A></P>
+
+<H2><A name="5.JBI-JBIpackaging"></A>JBI packaging</H2>
+
+<P>JBI defines a standard packaging for installing new components and deploying artifacts onto these components that can function as "containers".<BR>
+All these artifacts contain a JBI descriptor in the META-INF directory called jbi.xml.</P>
+
+<P>We have already discussed some of these artifacts, but let's dive in them a bit more. There are four types of artifacts, all packaged as zip or jar files:</P>
+<UL>
+ <LI><B>Components</B> installers contain the libraries and resources needed to run the component. Components can references Shared Libraries.</LI>
+ <LI><B>Shared Libraries</B> are collection of jars that can be shared by several components</LI>
+ <LI><B>Service Units</B> are artifacts meant to be deploy to a specific component. Aside from the JBI descriptor, the service unit packaging is specific to a component and can take various forms: a single XSLT style sheet, a BPEL process, or some java classes ...</LI>
+ <LI><B>Service assemblies</B> are collections of Service Units. Service units can not be deployed directly and must be packaged in a service assembly which contains the service units and associated metadata.</LI>
+</UL>
+
+
+<P>A service assembly is thus a zip of zips. It can be compared to an EAR in the J2EE world. To ease the pain of packaging the JBI artifacts, ServiceMix provides a powerful maven based tooling which can package all the JBI artifacts and generate their JBI descriptors automatically. To ease the development more, we provide maven archetypes for JBI components and service units: archetypes are templates that can generate a project in one command line.</P>
+
+<P><A href="#5.JBI-top" title="top on 5. JBI">top</A></P>
+
+<H2><A name="5.JBI-Othermaterials"></A>Other materials</H2>
+
+<UL>
+ <LI><SPAN class="nobr"><A href="http://jcp.org/en/jsr/detail?id=208" title="Visit page outside Confluence" rel="nofollow">JSR208: Java Business Integration<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></LI>
+ <LI><SPAN class="nobr"><A href="https://open-esb.dev.java.net/public/pdf/JBI-Components-Theory.pdf" title="Visit page outside Confluence" rel="nofollow">JBI Components: Part 1 (Theory)<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> by Ron Ten-Hove</LI>
+ <LI><SPAN class="nobr"><A href="https://open-esb.dev.java.net/public/whitepapers/JBIforSOI.pdf" title="Visit page outside Confluence" rel="nofollow">Using JBI for service oriented integration<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> by Ron Ten-Hove</LI>
+ <LI><SPAN class="nobr"><A href="http://www.theserverside.com/articles/article.tss?l=JBIforSOA" title="Visit page outside Confluence" rel="nofollow">JBI - A Standard-based approach for SOA<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> by Meeraj Kinnumpurath</LI>
+ <LI>Steve Vinoski's <SPAN class="nobr"><A href="http://dsonline.computer.org/portal/site/dsonline/menuitem.9ed3d9924aeb0dcd82ccc6716bbe36ec/index.jsp?amp%3Bamp%3Bamp%3BpName=dso_level1&%3Bamp%3Bamp%3Bpath=dsonline%2F0507&%3Bamp%3Bamp%3Bfile=w4tow.xml&%3Bamp%3Bamp%3Bxsl=article.xsl&%3Bamp%3Bamp%3B" title="Visit page outside Confluence" rel="nofollow">JBI article<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></LI>
+ <LI>Frank Summer's <SPAN class="nobr"><A href="http://www.artima.com/lejava/articles/jbi2.html" title="Visit page outside Confluence" rel="nofollow">SOA JBI<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></LI>
+ <LI><SPAN class="nobr"><A href="http://www.webservices.org/weblog/warren_buckley/jbi_the_only_game_in_town" title="Visit page outside Confluence" rel="nofollow">JBI - the only game in town<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></LI>
+ <LI>Carlos's <SPAN class="nobr"><A href="http://www.manageability.org/blog/stuff/jbi-containers" title="Visit page outside Confluence" rel="nofollow">blog post<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> on JBI</LI>
+ <LI>JBI gains Industry support <SPAN class="nobr"><A href="http://www.ebizq.net/topics/dev_tools/features/6188.html" title="Visit page outside Confluence" rel="nofollow">EbizQ<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></LI>
+ <LI><SPAN class="nobr"><A href="http://java.sun.com/integration/" title="Visit page outside Confluence" rel="nofollow">Sun's JBI site<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></LI>
+ <LI><SPAN class="nobr"><A href="http://www.chwlund.com/" title="Visit page outside Confluence" rel="nofollow">Carl-Henrik Wolf Lund<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> created a (Norwegian) <SPAN class="nobr"><A href="http://www.chwlund.com/?p=56" title="Visit page outside Confluence" rel="nofollow">presentation on JBI<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></LI>
+ <LI><SPAN class="nobr"><A href="http://azur.typepad.com/bpel/2005/12/sca_jbi_and_mor.html" title="Visit page outside Confluence" rel="nofollow">SCA, JBI and more..<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 echos our <SPAN class="nobr"><A href="http://goopen.org/confluence/pages/createpage.action?spaceKey=SM30UG&title=How%20does%20ServiceMix%20compare%20to%20Tuscany%20or%20SCA&linkCreation=true&fromPageId=13491" title="Create Page: How does ServiceMix compare to Tuscany or SCA" class="createlink">FAQ entry<SUP><IMG class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
+ <LI><SPAN class="nobr"><A href="http://dx.doi.org/10.1571/PSGP7-14-05CC" title="Visit page outside Confluence" rel="nofollow">Java Business Integration (JBI) Gains Industry Support<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> by Patricia Seybold Group</LI>
+</UL>
+
+
+
+<P><A href="#5.JBI-top" title="top on 5. JBI">top</A></P>
+<STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD class="ScrollbarPrevIcon"><A href="4-examples.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/back_16.gif" width="16" height="16"></A></TD><TD width="33%" class="ScrollbarPrevName"><A href="4-examples.html">4. Examples</A> </TD><TD width="33%" class="ScrollbarParent"><SUP><A href="users-guide.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif" width="8" height="8"></A></SUP><A href="users-guide.html">User's Guide</A></TD><TD width="33%" class="ScrollbarNextName"> </TD></TR></TABLE></DIV></DIV>
+
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </DIV>
+ <DIV id="site-footer">
+ Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A>,
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Sep 06, 2006
+ (<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=13491&originalId=13506">view change</A>)
+
+ (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=13491">edit page</A>)
+ </DIV>
+
+ </BODY>
+
+</HTML>
\ No newline at end of file
Added: incubator/servicemix/site/sm30ug/basic.data/basicflow1.jpg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/basic.data/basicflow1.jpg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/basic.data/basicflow1.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/basic.data/basicflow1.jpg.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/basic.data/basicflow1.jpg.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/basic.data/basicflow1.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/basic.data/basicflow_as_usecase.jpg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/basic.data/basicflow_as_usecase.jpg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/basic.data/basicflow_as_usecase.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/basic.data/basicflow_as_usecase.jpg.jpeg
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/basic.data/basicflow_as_usecase.jpg.jpeg?view=auto&rev=441090
==============================================================================
Binary file - no diff available.
Propchange: incubator/servicemix/site/sm30ug/basic.data/basicflow_as_usecase.jpg.jpeg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/servicemix/site/sm30ug/basic.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/sm30ug/basic.html?view=auto&rev=441090
==============================================================================
--- incubator/servicemix/site/sm30ug/basic.html (added)
+++ incubator/servicemix/site/sm30ug/basic.html Thu Sep 7 07:16:46 2006
@@ -0,0 +1,309 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+ <HEAD>
+<!--
+ Pier's plugin always overwrites the stylesheet so lets explicitly use another one
+ <link type="text/css" rel="stylesheet" href="autoexport:///SM30UG/resources/space.css">
+-->
+ <LINK type="text/css" rel="stylesheet" href="resources/site.css">
+ <SCRIPT src="resources/space.js" type="text/javascript"></SCRIPT>
+ <TITLE>
+Basic
+ </TITLE>
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+ <BODY onload="init()">
+
+ <!-- Banner -->
+ <DIV id="site-banner">
+ </DIV>
+
+ <!-- Bread crumbs and Quick Links -->
+ <DIV id="site-navbar">
+ <TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
+ <TR>
+ <TD align="left" valign="middle" nowrap="">
+ <DIV id="site-breadcrumbs">
+<A href="users-guide.html" title="ServiceMix 3.0 User Guide">ServiceMix 3.0 User Guide</A> > <A href="users-guide.html" title="User's Guide">User's Guide</A> > <A href="4-examples.html" title="4. Examples">4. Examples</A> > <A href="" title="Basic">Basic</A>
+ </DIV>
+ </TD>
+ <TD align="right" valign="middle" nowrap="">
+ <DIV id="site-quicklinks">
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+
+<!-- Integrate google search later.
+ <form name="search" action="http://www.google.com/search" method="get">
+ <input type="hidden" name="ie" value="UTF- 8" />
+ <input type="hidden" name="oe" value="UTF- 8" />
+ <input type="hidden" name="domains" value="" />
+ <input type="hidden" name="sitesearch" value="" />
+ <input type="text" name="q" maxlength="255" value="" />
+ <input type="submit" name="btnG" value="Google Search" />
+ </form>
+-->
+
+ <DIV id="site-content">
+ <TABLE>
+ <TR>
+ <TD valign="top">
+ <DIV id="site-navigation">
+ </DIV>
+ </TD>
+ <TD valign="top">
+ <DIV id="site-page">
+
+<!--
+ <div class="pagetitle">Basic</div>
+-->
+ <DIV class="wiki-content"><STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD width="33%" class="ScrollbarPrevName"> </TD><TD width="33%" class="ScrollbarParent"><SUP><A href="4-examples.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif" width="8" height="8"></A></SUP><A href="4-examples.html">4. Examples</A></TD><TD width="33%" class="ScrollbarNextName"> <A href="bridge.html">Bridge</A></TD><TD class="ScrollbarNextIcon"><A href="bridge.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/forwd_16.gif" width="16" height="16"></A></TD></TR></TABLE></DIV>
+<P><A name="Basic-top"></A></P>
+
+<H1><A name="Basic-BasicExample"></A>Basic Example</H1>
+
+
+<H2><A name="Basic-Overview"></A>Overview</H2>
+
+<P>This document describes how to run the <EM>Basic</EM> example and provides details about what it does. For information on the business use case, please refer to: <SPAN class="nobr"><A href="http://www.servicemix.org/Use%20Cases" title="Visit page outside Confluence" rel="nofollow">Use Case for Basic<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>.
+<BR clear="all">
+<BR clear="all">
+The Basic example illustrates the following:</P>
+<UL>
+ <LI>use of declarative programming</LI>
+ <LI>how to use an <SPAN class="nobr"><A href="http://www.activemq.org/Spring%20Support" title="Visit page outside Confluence" rel="nofollow">ActiveMQ<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> message broker</LI>
+ <LI>how to use a <SPAN class="nobr"><A href="http://www.servicemix.org/Quartz" title="Visit page outside Confluence" rel="nofollow">Quartz<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> timer</LI>
+ <LI>how to use the <SPAN class="nobr"><A href="http://jencks.org/" title="Visit page outside Confluence" rel="nofollow">Jencks<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> JCA container</LI>
+ <LI>how to use the <SPAN class="nobr"><A href="http://geronimo.apache.org/" title="Visit page outside Confluence" rel="nofollow">Geronimo<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> Transaction Manager via the <SPAN class="nobr"><A href="http://jencks.org/Transaction%20Manager" title="Visit page outside Confluence" rel="nofollow">Jencks factory bean<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></LI>
+ <LI>how to use tracing</LI>
+</UL>
+
+
+<P>The source code for the Basic example is located in the ServiceMix installation directory under the <TT>examples\basic\src\main\resources</TT> directory in the <TT>servicemix.xml</TT> file. It is recommended that you refer to the source code while reading this document.
+<BR clear="all">
+<BR clear="all">
+There are several components in the <TT>servicemix.xml</TT>file. One component sets off a trigger to send messages to a source destination. Then those messages are consumed by another component and sent to a different output destination. A trace component displays the messages as they arrive.
+<BR clear="all">
+<BR clear="all"></P>
+
+<H2><A name="Basic-RunningtheBasicExample"></A>Running the <EM>Basic</EM> Example</H2>
+
+<P>From a command shell, go to the Basic example directory:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">cd [servicemix_install_dir]\examples\basic</PRE>
+</DIV></DIV>
+<P><BR clear="all">
+Then type:</P>
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">mvn jbi:embeddedServicemix</PRE>
+</DIV></DIV>
+<P><BR clear="all">
+<BR clear="all"></P>
+<TABLE cellpadding="5" width="85%" cellspacing="8px" class="tipMacro" border="0" align="center"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="http://goopen.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B class="strong">Handy Hint</B><BR>
+<P>This example start an ActiveMQ JMS Broker, so be sure to stop any ServiceMix server already running.</P></TD></TR></TABLE>
+
+<H2><A name="Basic-StoppingtheBasicExample"></A>Stopping the <EM>Basic</EM> Example</H2>
+
+<P>To terminate the Basic example type "CTRL-C" in the command shell in which it is running.
+<BR clear="all"></P>
+
+<H2><A name="Basic-HowitWorks"></A>How it Works</H2>
+
+<P>The diagram below illustrates the flow of messages through the <EM>Basic</EM> components.
+<BR clear="all">
+<BR clear="all"></P>
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; "><B>Basic Example Message Flow Diagram</B></DIV><DIV class="panelContent">
+<P><DIV align="center"><IMG src="basic.data/basicflow1.jpg" border="0"></DIV><BR>
+ </P>
+</DIV></DIV>
+<P><BR clear="all">
+<BR clear="all"></P>
+
+<P>Messages flow through the components as follows:</P>
+<OL>
+ <LI>The <EM>timer</EM> component sends a message to <EM>inputSender</EM> through the Normalized Message Router (NMR).</LI>
+ <LI><EM>inputSender</EM> converts the message (marshals it) into a JMS message, then uses the <EM>jmsTemplate</EM> bean to publish the message.</LI>
+ <LI><EM>jmsTemplate</EM> uses the <EM>jmsFactory</EM>bean to get a connection to the port associated with the JMS topic called "demo.org.servicemix.source." The message is published on the "demo.org.servicemix.source" topic.</LI>
+ <LI><EM>jencks</EM> (the JCA resource adapter) listens on port 61616 for messages.</LI>
+ <LI><EM>inputReceiver</EM> subscribes to the "demo.org.servicemix.source" topic via <EM>jencks</EM> and receives the JMS message.</LI>
+ <LI><EM>inputReceiver</EM> normalizes the JMS message and sends it to <EM>outputSender</EM> via the NMR.</LI>
+ <LI><EM>outputSender</EM> marshals the normalized message to a JMS message and uses <EM>jmsTemplate</EM> to publish the message on the "demo.org.servicemix.result" topic.</LI>
+ <LI><EM>jmsTemplate</EM> publishes it on the "demo.org.servicemix.result" topic using <EM>jmsFactory</EM> to get a connection to the result topic.</LI>
+ <LI><EM>jencks</EM> listens on port 61616 for messages.</LI>
+ <LI><EM>jmsTrace</EM> subscribes to the "demo.org.servicemix.result" topic and receives the JMS message via <EM>jencks</EM>.</LI>
+ <LI><EM>jmsTrace</EM> converts the JMS message into a normalized message and sends it to <EM>trace</EM> via the NMR.</LI>
+ <LI><EM>trace</EM> transforms the normalized message into a string and logs it to the console.
+<BR clear="all"></LI>
+</OL>
+
+
+<P>Every 5 seconds logging information is written to the console, followed by information from the trace component. Note, that the triggers' property values of "name", "My Example Job", "group", and "ServiceMix" are displayed along with a timestamp. Typical output looks like the following:
+<BR clear="all"></P>
+<DIV class="preformatted"><DIV class="preformattedContent">
+<PRE>INFO TraceComponent - Exchange: InOnly[
+ id: ID:guillaumes-1927-1157464363171-19:11
+ status: Active
+ role: provider
+ service: {http://servicemix.apache.org/demo/}trace
+ endpoint: trace
+ in: <?xml version="1.0" encoding="UTF-8"?>
+ <timer>
+ <name>My Example Job</name>
+ <group>ServiceMix</group>
+ <fullname>ServiceMix.My Example Job</fullname>
+ <description/>
+ <fireTime>Tue Sep 05 15:53:39 CEST 2006</fireTime>
+ </timer>
+</PRE>
+</DIV></DIV>
+
+<H2><A name="Basic-Details"></A>Details</H2>
+
+<P>The following table provides more details about the function of each component and bean in the servicemix.xml file.
+<BR clear="all">
+<BR clear="all"></P>
+<TABLE class="confluenceTable"><TBODY>
+<TR>
+<TH class="confluenceTh"> Component or Bean ID </TH>
+<TH class="confluenceTh"> Description </TH>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>jbi</EM> </TD>
+<TD class="confluenceTd"> <EM>jbi</EM> is the "id" of the JBI container and provides the basic infrastructure services for the following components: <EM>timer</EM>, <EM>inputSender</EM>, <EM>inputReceiver</EM>, <EM>outputSender</EM>, <EM>jmsTrace</EM>, and <EM>trace</EM>. During initialization, several singletons are instantiated: <EM>transactionManager</EM>, <EM>broker</EM>, <EM>jencks</EM>, <EM>jmsFactory</EM>, and <EM>jbi</EM>. After initialization, the components in the <EM>jbi</EM> container are activated, starting with the <EM>timer</EM> component. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>timer</EM> </TD>
+<TD class="confluenceTd"> The <EM>timer</EM> component shows the use of the QuartzComponent class. Every 5 seconds, until the program is terminated, the timer component kicks off an instance of a SimpleTrigger, which is associated with an instance of JobDetail. The job has a property called "name" with a value of "My Example Job" and another property called "group" with a value of "ServiceMix." The resulting message is converted to a normalized message and routed through the NMR. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>inputSender</EM> </TD>
+<TD class="confluenceTd"> This is a component inside the JBI container. It receives the normalized message (the message from the trigger), converts it to a JMS message, and publishes it to the topic called demo.org.servicemix.source. It uses the <EM>jmsTemplate</EM>(1) bean to handle the publish. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>inputReceiver</EM> </TD>
+<TD class="confluenceTd"> This component uses <EM>jencks</EM> , the JCA container, to listen on port 61616 for a JMS message on the topic called "demo.org.servicemix.source." <EM>inputReceiver</EM> subscribes to the demo.org.servicemix.source topic. It takes the message, normalizes it, and routes it to <EM>outputSender</EM> via the NMR. This component combined with <EM>outputSender</EM> and supporting beans creates a JMS bridge between two topics. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>outputSender</EM> </TD>
+<TD class="confluenceTd"> This component receives a normalized message from the NMR, marshals it into a JMS message using <EM>jmsTemplate</EM>, then publishes it on the ActiveMQ (JMS) topic called "demo.org.servicemix.result." </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>jmsTrace</EM> </TD>
+<TD class="confluenceTd"> This component uses <EM>jencks</EM> to subscribe to the "demo.org.servicemix.result" topic and get messages. It then marshals the message into a normalized message and routes it via the NMR to the <EM>trace</EM> component. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>trace</EM> </TD>
+<TD class="confluenceTd"> Receives normalized messages from <EM>jmsTrace</EM> via the NMR. It transforms the normalized message into a string and logs it to the console. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>jencks</EM> </TD>
+<TD class="confluenceTd"> The <EM>jencks</EM> bean defines a JCA container. The JCA container allows you to configure thread pool size, configure a transaction manager, and configure a resource adapter. In this example, the resource adapter is an ActiveMQ adapter, however, another JMS listener could be configured instead. This adapter listens on port 61616 for JMS messages. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>broker</EM> </TD>
+<TD class="confluenceTd"> The <EM>broker</EM> bean uses the <TT>activemq.xml</TT> file to configure the message broker, which handles the JMS messages for the components that require JMS messaging services. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>transactionManager</EM> </TD>
+<TD class="confluenceTd"> This bean is configured to be the default transaction manager for the <EM>jbi</EM> container. <EM>jencks</EM>is configured to use the default transaction manager. This transaction manager provides transactional services between the resource adapter (in this case the ActiveMQ resource adapter provided by the <EM>jencks</EM> JCA container) and components the <EM>jbi</EM> container. </TD>
+</TR>
+<TR>
+<TD class="confluenceTd"> <EM>jmsFactory</EM> </TD>
+<TD class="confluenceTd"> This bean listens on port 61616 and provides a pooled ActiveMQ connection. </TD>
+</TR>
+</TBODY></TABLE>
+<P>1. <EM>jmsTemplate:</EM> JmsTemplate is a Spring component which hides the low level details when sending JMS messages. For additional information see: <SPAN class="nobr"><A href="http://docs.codehaus.org/display/ACTIVEMQ/Spring%20Support" title="Visit page outside Confluence" rel="nofollow">JmsTemplate<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>. jmsTemplate is not a component in the <EM>jbi</EM> container. It is used by <EM>inputSender</EM> and <EM>outputSender</EM>.</P>
+
+<H2><A name="Basic-Usecase"></A>Use case</H2>
+
+<P>ServiceMix is an Enterprise Service Bus (ESB) that is based on the Java Business Integration (JBI) standard <SPAN class="nobr"><A href="http://www.jcp.org/en/jsr/detail?id=208" title="Visit page outside Confluence" rel="nofollow">JSR 208<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>. The JBI-based design specifies a standards-based pluggable architecture with a JVM-based runtime component called the Normalized Message Router (NMR). The <EM>Basic</EM> example demonstrates how applications communicate via the ServiceMix ESB, and the role that the NMR can play in that communication. Similar techniques could be used to plug any external <SUP>1</SUP> application or service into ServiceMix (e.g. SAP, Peoplesoft, spreadsheets, POJOs, Webservices and EJBs) and allow it to communicate with other external applications or components using ServiceMix itself.</P>
+
+<P>A hypothetical business scenario, which extends the <EM>Basic</EM> Example, is that of a department store distributor. This distributor sells products from multiple wholesalers (suppliers) to various retailers (customers). The distributor presents a common interface for product ordering to each of its department store customers. However, the distributor must work with a different ordering interface for each wholesale suppliers for the products they are buying.</P>
+
+<P>Using an ESB, the distributor has developed a number of components to receive department store orders and then dynamically route and transform these orders to the appropriate wholesaler. The order processing flow is described as follows:</P>
+<OL>
+ <LI>Using the distributor's web interface, a department store customer submits an order for multiple products. An HTTP request is sent to the <EM>OrderReceiver</EM>, an HTTP binding component (BC). <SUP>3</SUP></LI>
+ <LI>The <EM>OrderReceiver</EM> sends the message to an <EM>OrderRouter</EM> service engine (SE) <SUP>4</SUP> component. This SE is responsible for parsing the order and deciding, based on the message content, which <EM>OrderTransformer</EM> should receive which part of the message (i.e., an order for a product).</LI>
+ <LI>The <EM>OrderRouter</EM> publishes the orders to the appropriate message topics based on the message content. Specifically, the <EM>OrderRouter</EM> publishes the messages based on which wholesaler sells the item.</LI>
+ <LI>The <EM>OrderTransformer</EM> is a service engine component, which modifies the message and puts it in a format which is readable by the wholesaler interface that will fulfill the order.</LI>
+ <LI>Each <EM>OrderTransformer</EM> sends the modified message to the <EM>OrderProcessor</EM>.</LI>
+ <LI>The <EM>OrderProcessor</EM> is a binding component that has two functions:<BR>
+a. It places an order to the appropriate wholesaler through the wholesaler's Webservice or proprietary interface.<BR>
+b. It also publishes a message about the order on a topic.</LI>
+ <LI>The message on the topic is subsequently picked up by the <EM>BusinessMonitor</EM> component via the <EM>jmsTrace</EM> component.</LI>
+ <LI>The <EM>BusinessMonitor</EM> component monitors the orders for quality assurance and business analytics, such as data mining.</LI>
+</OL>
+
+
+<P>The following diagram illustrates this:</P>
+<DIV class="panel" style="border-style: solid; border-color: #ccc; "><DIV class="panelHeader" style="border-bottom-style: solid; border-bottom-color: #ccc; "><B>Department Store Distributor's Order Processing System</B></DIV><DIV class="panelContent">
+<P><DIV align="center"><IMG src="basic.data/basicflow_as_usecase.jpg" border="0"></DIV></P>
+</DIV></DIV>
+<OL>
+ <LI><EM>External</EM> means the application is outside of the ESB.</LI>
+ <LI><EM>Resource Adapter</EM>: a resource adapter provides connectivity between a specific external application and the ESB. In the <EM>Basic</EM> example the jencks container provides a JMS resource adapater.</LI>
+ <LI><EM>Binding Component (BC)</EM>: a BC provides connectivity to applications that are external to the ESB.</LI>
+ <LI><EM>Service Engine (SE)</EM>: a service engine provides business logic and transformation services to other components within the enterprise service bus.</LI>
+</OL>
+
+
+<H2><A name="Basic-RelatedDocumentation"></A>Related Documentation</H2>
+
+<P>For more information on the following topics please see:</P>
+<UL>
+ <LI><SPAN class="nobr"><A href="http://www.activemq.org/Spring%20Support" title="Visit page outside Confluence" rel="nofollow">ActiveMQ related components, <EM>jmsFactory</EM>, <EM>jmsTemplate</EM>, <EM>broker</EM><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></LI>
+</UL>
+
+
+<UL>
+ <LI><SPAN class="nobr"><A href="http://jencks.org/" title="Visit page outside Confluence" rel="nofollow">JCA Container, <EM>jencks</EM><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></LI>
+</UL>
+
+
+<UL>
+ <LI><SPAN class="nobr"><A href="http://www.servicemix.org/Quartz" title="Visit page outside Confluence" rel="nofollow">Quartz timer<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></LI>
+</UL>
+
+
+<P>For a brief explanation of the XML tags in the <TT>servicemix.xml</TT> file, please see:</P>
+<UL>
+ <LI><SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/xml-schemas.html" title="Visit page outside Confluence" rel="nofollow">XSD<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></LI>
+</UL>
+
+
+<STYLE type="text/css">/*<![CDATA[*/
+table.ScrollbarTable {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color: #f0f0f0}
+table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
+table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
+table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
+table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
+table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}
+
+/*]]>*/</STYLE><DIV class="Scrollbar"><TABLE class="ScrollbarTable"><TR><TD width="33%" class="ScrollbarPrevName"> </TD><TD width="33%" class="ScrollbarParent"><SUP><A href="4-examples.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/up_16.gif" width="8" height="8"></A></SUP><A href="4-examples.html">4. Examples</A></TD><TD width="33%" class="ScrollbarNextName"> <A href="bridge.html">Bridge</A></TD><TD class="ScrollbarNextIcon"><A href="bridge.html"><IMG border="0" align="middle" src="http://goopen.org/confluence/images/icons/forwd_16.gif" width="16" height="16"></A></TD></TR></TABLE></DIV></DIV>
+
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </DIV>
+ <DIV id="site-footer">
+ Added by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A>,
+ last edited by <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume Nodet</A> on Sep 06, 2006
+
+ (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=13492">edit page</A>)
+ </DIV>
+
+ </BODY>
+
+</HTML>
\ No newline at end of file