camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Confluence)" <conflue...@apache.org>
Subject [CONF] Apache Camel > Camel Hawtio Maven Goal
Date Tue, 03 Dec 2013 18:06:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/en/2176/1/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><s>Camel Hawtio Maven Goal</s></h2>
     <h4>Page <b>removed</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
     <br/>
     <div class="notificationGreySide">
         <h2><a name="CamelHawtioMavenGoal-camel%3Ahawtio"></a>camel:hawtio</h2>
<p><b>Available as of Camel 2.13/2.12.3</b></p>

<p>The <b>camel:hawtio</b> goal of the <a href="/confluence/display/CAMEL/Camel+Maven+Plugin"
title="Camel Maven Plugin">Camel Maven Plugin</a> is an extension to <a href="/confluence/display/CAMEL/Camel+Run+Maven+Goal"
title="Camel Run Maven Goal">Camel Run Maven Goal</a> which is used to run your Camel
<a href="/confluence/display/CAMEL/Spring" title="Spring">Spring</a> or <a
href="/confluence/display/CAMEL/Using+OSGi+blueprint+with+Camel" title="Using OSGi blueprint
with Camel">OSGi Blueprint</a> configurations in a forked JVM from Maven.</p>

<p>A good example application to get you started is the <a href="/confluence/display/CAMEL/Spring+Example"
title="Spring Example">Spring Example</a>.</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: java; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
cd examples/camel-example-spring
mvn camel:hawtio
</pre>
</div></div>

<p>This starts the example, and bootup the <a href="http://hawt.io/" class="external-link"
rel="nofollow">hawtio</a> web console by default on <a href="http://localhost:8080/hawtio"
class="external-link" rel="nofollow">http://localhost:8080/hawtio</a>, which allows
you to 'see' what happens with the Camel application running in the JVM. You can visualize
the Camel routes in diagrams, as well see performance statistics, and debug or profile routes,
and much more. The screen shot below shows the camel-example-spring in action with an table
overview of the 3 routes running and some statistics such as number of messages processed
and their min/max and average time etc.</p>

<p><span class="image-wrap" style=""><img src="/confluence/download/attachments/34842430/hawtio.png?version=1&amp;modificationDate=1385643490000"
style="border: 0px solid black" /></span></p>

<h3><a name="CamelHawtioMavenGoal-Settingupcamel%3Ahawtioplugin"></a>Setting
up camel:hawtio plugin</h3>

<p>In your Maven pom.xml file add the following plugin under plugins:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="theme: Default; brush: xml; gutter: false" style="font-size:12px; font-family:
ConfluenceInstalledFont,monospace;">
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
        &lt;artifactId&gt;camel-maven-plugin&lt;/artifactId&gt;
      &lt;/plugin&gt;    
</pre>
</div></div>

<p>As the camel:hawtio plugin is an extension to the <a href="/confluence/display/CAMEL/Camel+Run+Maven+Goal"
title="Camel Run Maven Goal">Camel Run Maven Goal</a> it has the same options as
the run plugin, and in addition the following:</p>

<div class='table-wrap'>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Option </th>
<th class='confluenceTh'> Default </th>
<th class='confluenceTh'> Description </th>
</tr>
<tr>
<td class='confluenceTd'> port </td>
<td class='confluenceTd'> 8080 </td>
<td class='confluenceTd'> The port number to use for the hawtio web console. </td>
</tr>
</tbody></table>
</div>

     </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message