You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2014/01/28 08:20:30 UTC

svn commit: r895607 - in /websites/production/camel/content: bam-example.html cache/main.pageCache

Author: buildbot
Date: Tue Jan 28 07:20:30 2014
New Revision: 895607

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/bam-example.html
    websites/production/camel/content/cache/main.pageCache

Modified: websites/production/camel/content/bam-example.html
==============================================================================
--- websites/production/camel/content/bam-example.html (original)
+++ websites/production/camel/content/bam-example.html Tue Jan 28 07:20:30 2014
@@ -86,34 +86,7 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="BAMExample-BusinessActivityMonitor(BAM)Example">Business Activity Monitor (BAM) Example</h2>
-
-<p>The <a shape="rect" href="bam.html">BAM</a> (Business Activity Monitor) example shows how to monitor your transaction flows using Camel.</p>
-
-<p>In this example we will use Camel to monitor a business process consisting of </p>
-<ul><li>purchase orders</li><li>invoices</li></ul>
-
-
-<p>Then we will check to see that for every purchase order created by system A, that system B will generate an invoice within the specified amount of time (2 seconds in this example). If an invoice is not generated within the allowed amount of time and error is generated and sent to an <a shape="rect" href="endpoint.html">Endpoint</a>.</p>
-
-<h3 id="BAMExample-Overview">Overview</h3>
-
-<p>This example lives in the <em>examples/camel-example-bam</em> directory. It will poll the following directories</p>
-<ul><li>the child <em>src/data/purchaseOrders</em> directory for XML purchase orders</li><li>the child <em>src/data/invoices</em> directory for XML invoices</li></ul>
-
-
-<p>The <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/MyActivities.java">MyActivities</a> class defines the <a shape="rect" href="bam.html">BAM</a> activities; that is </p>
-
-<ul><li>the input sources (the two directories above) which could be any of the supported camel <a shape="rect" href="uris.html">URIs</a></li><li>how the activities relate to each other - namely the <a shape="rect" href="correlation-identifier.html">Correlation Identifier</a> pattern</li><li>the maixmum amount of time allowed from the time a purchase order is received when if an invoice is not received an error should be raised.</li></ul>
-
-
-<p>There is also a spring configuration file in <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/spring/camel-context.xml">src/resources/META-INF/services/camel-context.xml</a> which defines the JPA template and tells Camel to look in the <strong>org.apache.camel.example.bam</strong> package to find its routes.</p>
-
-<h3 id="BAMExample-Codewalkthrough">Code walkthrough </h3>
-
-<p>So lets start with the activities definition in <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/MyActivities.java">MyActivities</a></p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<div class="wiki-content maincontent"><h2 id="BAMExample-BusinessActivityMonitor(BAM)Example">Business Activity Monitor (BAM) Example</h2><p>The <a shape="rect" href="bam.html">BAM</a> (Business Activity Monitor) example shows how to monitor your transaction flows using Camel.</p><p>In this example we will use Camel to monitor a business process consisting of</p><ul><li>purchase orders</li><li>invoices</li></ul><p>Then we will check to see that for every purchase order created by system A, that system B will generate an invoice within the specified amount of time (2 seconds in this example). If an invoice is not generated within the allowed amount of time and error is generated and sent to an <a shape="rect" href="endpoint.html">Endpoint</a>.</p><h3 id="BAMExample-Overview">Overview</h3><p>This example lives in the <em>examples/camel-example-bam</em> directory. It will poll the following directories</p><ul><li>the child <em>src/data/purchaseOrders</em> directory for XML purchase ord
 ers</li><li>the child <em>src/data/invoices</em> directory for XML invoices</li></ul><p>The <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/MyActivities.java">MyActivities</a> class defines the <a shape="rect" href="bam.html">BAM</a> activities; that is</p><ul><li>the input sources (the two directories above) which could be any of the supported camel <a shape="rect" href="uris.html">URIs</a></li><li>how the activities relate to each other - namely the <a shape="rect" href="correlation-identifier.html">Correlation Identifier</a> pattern</li><li>the maixmum amount of time allowed from the time a purchase order is received when if an invoice is not received an error should be raised.</li></ul><p>There is also a spring configuration file in <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-bam/src/main/resources/META-I
 NF/spring/camel-context.xml">src/resources/META-INF/services/camel-context.xml</a> which defines the JPA <code>EntityManagerFactory</code> and tells Camel to look in the <strong>org.apache.camel.example.bam</strong> package to find its routes.</p><h3 id="BAMExample-Codewalkthrough">Code walkthrough</h3><p>So lets start with the activities definition in <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-bam/src/main/java/org/apache/camel/example/bam/MyActivities.java">MyActivities</a></p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 public class MyActivities extends ProcessBuilder {
 
@@ -140,33 +113,14 @@ public class MyActivities extends Proces
     }
 }
 ]]></script>
-</div></div>
-
-<p>The first two lines of code sets up the inputs for the <a shape="rect" href="bam.html">BAM</a> activities via the <strong>activity()</strong> method which defines</p>
-<ul><li>the <a shape="rect" href="uris.html">URIs</a> of the inputs (which could come from any of the Camel <a shape="rect" href="components.html">Components</a></li><li>the <a shape="rect" href="correlation-identifier.html">Correlation Identifier</a> used to correlate together the purchase order and invoice messages which can be any <a shape="rect" href="expression.html">Expression</a> via any of the <a shape="rect" href="languages-supported.html">Languages Supported</a>. In this case we are using <a shape="rect" href="xpath.html">XPath</a>.</li></ul>
-
-
-<p>Then the final line of code defines the temporal rules to use; namely that it is considered to be an error if an invoice is not received within 2 seconds of a purchase order being received. When a failure occurs in this example we just send it to the <a shape="rect" href="log.html">Log</a> component to log out an error level message to commons-logging / log4j. You could change this to use some of the other <a shape="rect" href="components.html">Components</a> such as <a shape="rect" href="activemq.html">ActiveMQ</a>, <a shape="rect" href="jms.html">JMS</a>, <a shape="rect" href="irc.html">IRC</a>, <a shape="rect" href="mail.html">Mail</a>, <a shape="rect" href="xmpp.html">XMPP</a> etc.</p>
-
-<h3 id="BAMExample-Runningtheexample">Running the example</h3>
-
-<p>To run the example we use the <a shape="rect" href="camel-maven-plugin.html">Camel Maven Plugin</a>. For example from the source or binary distribution the following should work</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-cd examples/camel-example-bam
+</div></div><p>The first two lines of code sets up the inputs for the <a shape="rect" href="bam.html">BAM</a> activities via the <strong>activity()</strong> method which defines</p><ul><li>the <a shape="rect" href="uris.html">URIs</a> of the inputs (which could come from any of the Camel <a shape="rect" href="components.html">Components</a></li><li>the <a shape="rect" href="correlation-identifier.html">Correlation Identifier</a> used to correlate together the purchase order and invoice messages which can be any <a shape="rect" href="expression.html">Expression</a> via any of the <a shape="rect" href="languages-supported.html">Languages Supported</a>. In this case we are using <a shape="rect" href="xpath.html">XPath</a>.</li></ul><p>Then the final line of code defines the temporal rules to use; namely that it is considered to be an error if an invoice is not received within 2 seconds of a purchase order being received. When a failure occurs in this example we just send it to the <a s
 hape="rect" href="log.html">Log</a> component to log out an error level message to commons-logging / log4j. You could change this to use some of the other <a shape="rect" href="components.html">Components</a> such as <a shape="rect" href="activemq.html">ActiveMQ</a>, <a shape="rect" href="jms.html">JMS</a>, <a shape="rect" href="irc.html">IRC</a>, <a shape="rect" href="mail.html">Mail</a>, <a shape="rect" href="xmpp.html">XMPP</a> etc.</p><h3 id="BAMExample-Runningtheexample">Running the example</h3><p>To run the example we use the <a shape="rect" href="camel-maven-plugin.html">Camel Maven Plugin</a>. For example from the source or binary distribution the following should work</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[cd examples/camel-example-bam
 mvn camel:run
 ]]></script>
-</div></div>
-
-<p>If you prefer you can just run the Main directly using</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-mvn compile exec:java
+</div></div><p>If you prefer you can just run the Main directly using</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[mvn compile exec:java
 ]]></script>
-</div></div>
-
-<p>Failing that you can run the Main from inside your IDE if you prefer. Follow the <a shape="rect" href="building.html">Building</a> instructions to create an Eclipse/IDEA project to import</p></div>
+</div></div><p>Failing that you can run the Main from inside your IDE if you prefer. Follow the <a shape="rect" href="building.html">Building</a> instructions to create an Eclipse/IDEA project to import</p></div>
         </td>
         <td valign="top">
           <div class="navigation">

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.