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 Thu, 28 Nov 2013 13:01: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><a href="https://cwiki.apache.org/confluence/display/CAMEL/Camel+Hawtio+Maven+Goal">Camel
Hawtio Maven Goal</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >This starts the example, and bootup
the [hawtio|http://hawt.io/] web console by default on [http://localhost:8080/hawtio], which
allows you to &#39;see&#39; 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. <span class="diff-added-words"style="background-color:
#dfd;">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.</span> <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">!hawtio.png!
<br> <br></td></tr>
            <tr><td class="diff-unchanged" >h3. Setting up camel:hawtio plugin
<br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <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=1385643490921"
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 id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;" class="grey">
                        <a href="https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=CAMEL">Stop
watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://cwiki.apache.org/confluence/users/editmyemailsettings.action">Change
email notification preferences</a>
</div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Camel+Hawtio+Maven+Goal">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=34842430&revisedVersion=3&originalVersion=2">View
Changes</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message