camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1018162 [33/36] - in /websites/production/camel/content: ./ 2017/09/ 2017/09/14/ cache/ index.userimage/
Date Thu, 14 Sep 2017 19:25:53 GMT
Modified: websites/production/camel/content/tutorial-axis-camel.html
==============================================================================
--- websites/production/camel/content/tutorial-axis-camel.html (original)
+++ websites/production/camel/content/tutorial-axis-camel.html Thu Sep 14 19:25:46 2017
@@ -115,7 +115,7 @@
 <h4 id="Tutorial-AXIS-Camel-Maven2">Maven 2</h4>
 <p>Axis dependencies is available for maven 2 so we configure our pom.xml as:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
             &lt;artifactId&gt;axis&lt;/artifactId&gt;
@@ -156,7 +156,7 @@
 
 <p>Then we need to configure maven to use Java 1.5 and the Axis maven plugin that generates the source code based on the wsdl file:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;!-- to compile with 1.5 --&gt;
 	&lt;plugin&gt;
 		&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
@@ -191,7 +191,7 @@
 <h4 id="Tutorial-AXIS-Camel-wsdl">wsdl</h4>
 <p>We use the same .wsdl file as the <a shape="rect" href="tutorial-example-reportincident.html">Tutorial-Example-ReportIncident</a> and copy it to <code>src/main/webapp/WEB-INF/wsdl</code></p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
 &lt;wsdl:definitions xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;
 	xmlns:tns=&quot;http://reportincident.example.camel.apache.org&quot;
@@ -273,7 +273,7 @@
 <h4 id="Tutorial-AXIS-Camel-ConfiguringAxis">Configuring Axis</h4>
 <p>Okay we are now setup for the contract first development and can generate the source file. For now we are still only using standard Axis and not Spring nor Camel. We still need to setup Axis as a web application so we configure the web.xml in <code>src/main/webapp/WEB-INF/web.xml</code> as:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;servlet&gt;
         &lt;servlet-name&gt;axis&lt;/servlet-name&gt;
         &lt;servlet-class&gt;org.apache.axis.transport.http.AxisServlet&lt;/servlet-class&gt;
@@ -335,7 +335,7 @@ public class AxisReportIncidentService i
 </div></div>
 <p>Now we need to configure Axis itself and this is done using its <code>server-config.wsdd</code> file. We nearly get this for for free from the auto generated code, we copy the stuff from <code>deploy.wsdd</code> and made a few modifications:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;deployment xmlns=&quot;http://xml.apache.org/axis/wsdd/&quot; xmlns:java=&quot;http://xml.apache.org/axis/wsdd/providers/java&quot;&gt;
   &lt;!-- global configuration --&gt;
@@ -396,7 +396,7 @@ public class AxisReportIncidentService i
 
 <p>What we need to do now is important, as we need to modify the above configuration to use our webservice class than the default one, so we change the classname parameter to our class <strong>AxisReportIncidentService</strong>:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;parameter name=&quot;className&quot; value=&quot;org.apache.camel.example.axis.AxisReportIncidentService&quot;/&gt;
 ]]></script>
 </div></div>
@@ -415,7 +415,7 @@ mvn jetty:run
 
 <p>Clicking on the .wsdl link shows the wsdl file, but what. It's an auto generated one and not our original .wsdl file. So we need to fix this ASAP and this is done by configuring Axis in the server-config.wsdd file:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
   &lt;service name=&quot;ReportIncidentPort&quot; provider=&quot;java:RPC&quot; style=&quot;document&quot; use=&quot;literal&quot;&gt;
     &lt;wsdlFile&gt;/WEB-INF/wsdl/report_incident.wsdl&lt;/wsdlFile&gt;
     ...
@@ -426,7 +426,7 @@ mvn jetty:run
 <h3 id="Tutorial-AXIS-Camel-IntegratingSpring">Integrating Spring</h3>
 <p>First we need to add its dependencies to the <strong>pom.xml</strong>. </p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.springframework&lt;/groupId&gt;
             &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
@@ -437,7 +437,7 @@ mvn jetty:run
 
 <p>Spring is integrated just as it would like to, we add its listener to the web.xml and a context parameter to be able to configure precisely what spring xml files to use:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;context-param&gt;
         &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
         &lt;param-value&gt;
@@ -452,7 +452,7 @@ mvn jetty:run
 </div></div>
 <p>Next is to add a plain spring XML file named <strong>axis-example-context.xml</strong> in the src/main/resources folder.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -495,7 +495,7 @@ public class ReportIncidentService  {
 </div></div>
 <p>So now we need to get from AxisReportIncidentService to this one ReportIncidentService using Spring. Well first of all we add our real service to spring XML configuration file so Spring can handle its lifecycle:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -563,7 +563,7 @@ public class AxisReportIncidentService e
 <h3 id="Tutorial-AXIS-Camel-IntegratingCamel">Integrating Camel</h3>
 <p>Again the first step is to add the dependencies to the maven <strong>pom.xml</strong> file:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
             &lt;artifactId&gt;camel-core&lt;/artifactId&gt;
@@ -590,7 +590,7 @@ http://activemq.apache.org/camel/schema/
 <h4 id="Tutorial-AXIS-Camel-CamelContext">CamelContext</h4>
 <p><a shape="rect" href="camelcontext.html">CamelContext</a> is the heart of Camel its where all the <a shape="rect" href="routes.html">routes</a>, <a shape="rect" href="endpoint.html">endpoints</a>, <a shape="rect" href="components.html">components</a>, etc. is registered. So we setup a <a shape="rect" href="camelcontext.html">CamelContext</a> and the spring XML files looks like:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -616,7 +616,7 @@ http://activemq.apache.org/camel/schema/
 
 <p>The endpoint is configured in spring XML so we just add it as:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;camel:camelContext id=&quot;camelContext&quot;&gt;
         &lt;!-- endpoint named backup that is configued as a file component --&gt;
         &lt;camel:endpoint id=&quot;backup&quot; uri=&quot;file://target?append=false&quot;/&gt;
@@ -627,7 +627,7 @@ http://activemq.apache.org/camel/schema/
 
 <p>Next up is to be able to send a message to this endpoint. The easiest way is to use a ProducerTemplate. A ProducerTemplate is inspired by Spring template pattern with for instance JmsTemplate or JdbcTemplate in mind. The template that all the grunt work and exposes a simple interface to the end-user where he/she can set the payload to send. Then the template will do proper resource handling and all related issues in that regard. But how do we get hold of such a template? Well the <a shape="rect" href="camelcontext.html">CamelContext</a> is able to provide one. This is done by configuring the template on the camel context in the spring XML as:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;camel:camelContext id=&quot;camelContext&quot;&gt;
         &lt;!-- producer template exposed with this id --&gt;
         &lt;camel:template id=&quot;camelTemplate&quot;/&gt;
@@ -651,7 +651,7 @@ public class ReportIncidentService {
 </div></div>
 <p>And then let Spring handle the dependency inject as below:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;bean id=&quot;incidentservice&quot; class=&quot;org.apache.camel.example.axis.ReportIncidentService&quot;&gt;
         &lt;!-- set the producer template to use from the camel context below --&gt;
         &lt;property name=&quot;template&quot; ref=&quot;camelTemplate&quot;/&gt;
@@ -705,7 +705,7 @@ dir target /b
 <h3 id="Tutorial-AXIS-Camel-UnitTesting">Unit Testing</h3>
 <p>We would like to be able to unit test our <strong>ReportIncidentService</strong> class. So we add junit to the maven dependency:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;junit&lt;/groupId&gt;
             &lt;artifactId&gt;junit&lt;/artifactId&gt;
@@ -842,7 +842,7 @@ Tests run: 1, Failures: 0, Errors: 0, Sk
 <h4 id="Tutorial-AXIS-Camel-SmarterUnitTestingwithSpring">Smarter Unit Testing with Spring</h4>
 <p>The unit test above requires us to assemble the Camel pieces manually in java code. What if we would like our unit test to use our spring configuration file <strong>axis-example-context.xml</strong> where we already have setup the endpoint. And of course we would like to test using this configuration file as this is the real file we will use. Well hey presto the xml file is a spring ApplicationContext file and spring is able to load it, so we go the spring path for unit testing. First we add the spring-test jar to our maven dependency:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.springframework&lt;/groupId&gt;
             &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
@@ -861,7 +861,7 @@ public class ReportIncidentServiceTest e
 
 <p>The last change is to get hold of the producer template and now we can just refer to the bean id it has in the spring xml file:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;!-- producer template exposed with this id --&gt;
         &lt;camel:template id=&quot;camelTemplate&quot;/&gt;
 ]]></script>
@@ -881,7 +881,7 @@ public class ReportIncidentServiceTest e
 <h3 id="Tutorial-AXIS-Camel-UnitTestcallingWebService">Unit Test calling WebService</h3>
 <p>What if you would like to execute a unit test where you send a webservice request to the <strong>AxisReportIncidentService</strong> how do we unit test this one? Well first of all the code is merely just a delegate to our real service that we have just tested, but nevertheless its a good question and we would like to know how. Well the answer is that we can exploit that fact that Jetty is also a slim web container that can be embedded anywhere just as Camel can. So we add this to our pom.xml:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
             &lt;artifactId&gt;jetty&lt;/artifactId&gt;
@@ -984,7 +984,7 @@ public class AxisReportIncidentServiceTe
 <p>Camel is smart as <code><a shape="rect" href="bean-integration.html">@EndpointInjected</a></code> supports different kinds of object types. We like the ProducerTemplate so we just keep it as it is. <br clear="none">
 Since we use annotations on the field directly we do not need to set the property in the spring xml file so we change our service bean:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;bean id=&quot;incidentservice&quot; class=&quot;org.apache.camel.example.axis.ReportIncidentService&quot;/&gt;
 ]]></script>
 </div></div>
@@ -992,7 +992,7 @@ Since we use annotations on the field di
 
 <p>And since we use the <code><a shape="rect" href="bean-integration.html">@EndpointInjected</a></code> that refers to the endpoint with the id backup directly we can loose the template tag in the xml, so its shorter:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;bean id=&quot;incidentservice&quot; class=&quot;org.apache.camel.example.axis.ReportIncidentService&quot;/&gt;
 
     &lt;camel:camelContext id=&quot;camelContext&quot;&gt;

Modified: websites/production/camel/content/tutorial-business-partners.html
==============================================================================
--- websites/production/camel/content/tutorial-business-partners.html (original)
+++ websites/production/camel/content/tutorial-business-partners.html Thu Sep 14 19:25:46 2017
@@ -163,7 +163,7 @@
 <p>Here's a sample POM.  We've added a dependency on <strong>camel-core</strong>, and set the compile version to 1.5 (so we can use annotations):</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>pom.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
@@ -206,7 +206,7 @@
 
 <p>Here's the sample of the canonical XML file:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;invoice xmlns=&quot;http://activemq.apache.org/camel/tutorial/partners/invoice&quot;&gt;
   &lt;partner-id&gt;2&lt;/partner-id&gt;
@@ -235,7 +235,7 @@
 <p>We need a dependency:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
     &lt;artifactId&gt;camel-jaxb&lt;/artifactId&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
@@ -247,7 +247,7 @@
 <p>And a plugin configured:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;plugin&gt;
     &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
     &lt;artifactId&gt;jaxb2-maven-plugin&lt;/artifactId&gt;
@@ -285,7 +285,7 @@
 <h5 id="Tutorial-Business-Partners-SetUpaSkeletalCamel/SpringUnitTest">Set Up a Skeletal Camel/Spring Unit Test</h5>
 <ol><li>Add dependencies on Camel-Spring, and the Spring test JAR (which will automatically bring in JUnit 3.8.x) to your POM:
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
     &lt;artifactId&gt;camel-spring&lt;/artifactId&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
@@ -312,7 +312,7 @@ protected void setUp() throws Exception
 ]]></script>
 </div></div></li><li>Put in an empty test method just for the moment (so when we run this we can see that "1 test succeeded")</li><li>Add the Spring <a shape="rect" class="external-link" href="http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-metadata" rel="nofollow">&lt;beans&gt;</a> element (including the <a shape="rect" class="external-link" href="http://activemq.apache.org/camel/xml-reference.html">Camel Namespace</a>) with an empty <a shape="rect" href="spring.html#Spring-UsingSpringtoconfiguretheCamelContext">&lt;camelContext&gt;</a> element to the Spring context, like this:
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -432,7 +432,7 @@ public class CSVInputTest extends Abstra
 </div></div>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>CSVInputTest-context.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -452,7 +452,7 @@ public class CSVInputTest extends Abstra
 
 <ol><li>Update the Maven POM to include <a shape="rect" href="csv.html">CSV</a> <a shape="rect" href="data-format.html">Data Format</a> support:
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
     &lt;artifactId&gt;camel-csv&lt;/artifactId&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
@@ -488,7 +488,7 @@ public class CSVInputTest extends Abstra
 <p>So, we need a POJO with a method that takes something like an <code>InputStream</code> or <code>byte[]</code> as an argument, and returns in <code>Invoice</code> as before.  The process should look something like this:</p>
 <ol><li>Update the Maven POM to include <a shape="rect" class="external-link" href="http://poi.apache.org/">POI</a> support:
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
     &lt;artifactId&gt;poi&lt;/artifactId&gt;
     &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;

Modified: websites/production/camel/content/tutorial-example-reportincident-part1.html
==============================================================================
--- websites/production/camel/content/tutorial-example-reportincident-part1.html (original)
+++ websites/production/camel/content/tutorial-example-reportincident-part1.html Thu Sep 14 19:25:46 2017
@@ -107,7 +107,7 @@ mvn archetype:create -DgroupId=org.apach
 
 <p>Then we have the basic maven folder layout. We start out with the webservice part where we want to use Apache CXF for the webservice stuff. So we add this to the pom.xml</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;properties&gt;
         &lt;cxf-version&gt;2.6.1&lt;/cxf-version&gt;
     &lt;/properties&gt;
@@ -136,7 +136,7 @@ mvn archetype:create -DgroupId=org.apach
 <p>We put the wsdl file in the folder <code>src/main/webapp/WEB-INF/wsdl</code> and name the file <code>report_incident.wsdl</code>.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
 &lt;wsdl:definitions xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;
 	xmlns:tns=&quot;http://reportincident.example.camel.apache.org&quot;
@@ -218,7 +218,7 @@ mvn archetype:create -DgroupId=org.apach
 <p>Then we integration the CXF wsdl2java generator in the pom.xml so we have CXF generate the needed POJO classes for our webservice contract. <br clear="none">
 However at first we must configure maven to live in the modern world of Java 1.6 so we must add this to the pom.xml</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 			&lt;!-- to compile with 1.6 --&gt;
 			&lt;plugin&gt;
 				&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
@@ -233,7 +233,7 @@ However at first we must configure maven
 
 <p>And then we can add the CXF wsdl2java code generator that will hook into the compile goal so its automatic run all the time:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 			&lt;!-- CXF wsdl2java generator, will plugin to the compile goal --&gt;
 			&lt;plugin&gt;
 				&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
@@ -266,7 +266,7 @@ However at first we must configure maven
 <p>Next up is to configure the web.xml to be ready to use CXF so we can expose the webservice.<br clear="none">
 As Spring is the center of the universe, or at least is a very important framework in today's Java land we start with the listener that kick-starts Spring. This is the usual piece of code:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;!-- the listener that kick-starts Spring --&gt;
 	&lt;listener&gt;
 		&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
@@ -275,7 +275,7 @@ As Spring is the center of the universe,
 </div></div>
 <p>And then we have the CXF part where we define the CXF servlet and its URI mappings to which we have chosen that all our webservices should be in the path <code>/webservices/</code></p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;!-- CXF servlet --&gt;
 	&lt;servlet&gt;
 		&lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;
@@ -293,7 +293,7 @@ As Spring is the center of the universe,
 
 <p>Then the last piece of the puzzle is to configure CXF, this is done in a spring XML that we link to fron the web.xml by the standard Spring <code>contextConfigLocation</code> property in the web.xml</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;!-- location of spring xml files --&gt;
 	&lt;context-param&gt;
 		&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
@@ -309,7 +309,7 @@ As Spring is the center of the universe,
 <h3 id="Tutorial-Example-ReportIncident-Part1-ConfigurationofCXF">Configuration of CXF</h3>
 <p>The cxf-config.xml is as follows:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        xmlns:jaxws=&quot;http://cxf.apache.org/jaxws&quot;
@@ -379,7 +379,7 @@ public class ReportIncidentEndpointImpl
 <h3 id="Tutorial-Example-ReportIncident-Part1-Runningourwebservice">Running our webservice</h3>
 <p>Now that the code compiles we would like to run it inside a web container, for this purpose we make use of Jetty which we will bootstrap using it's plugin <code>org.mortbay.jetty:maven-jetty-plugin</code>:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
        &lt;build&gt;
            &lt;plugins&gt;
                ...
@@ -555,7 +555,7 @@ public interface ReportIncidentEndpoint
 
 <p>Now we are nearly there. But if you run the unit test with <code>mvn test</code> then it will fail. Why!!! Well its because that CXF needs is missing some dependencies during unit testing. In fact it needs the web container, so we need to add this to our <strong>pom.xml</strong>.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;!-- cxf web container for unit testing --&gt;
     &lt;dependency&gt;
         &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;

Modified: websites/production/camel/content/tutorial-example-reportincident-part2.html
==============================================================================
--- websites/production/camel/content/tutorial-example-reportincident-part2.html (original)
+++ websites/production/camel/content/tutorial-example-reportincident-part2.html Thu Sep 14 19:25:46 2017
@@ -90,7 +90,7 @@
 <h2 id="Tutorial-Example-ReportIncident-Part2-AddingCamel">Adding Camel</h2>
 <p>In this part we will introduce Camel so we start by adding Camel to our pom.xml:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
        &lt;properties&gt;
             ...
             &lt;camel-version&gt;1.4.0&lt;/camel-version&gt;
@@ -390,7 +390,7 @@ class=org.apache.camel.component.log.Log
 <p>Lets use a template language instead such as <a shape="rect" class="external-link" href="http://velocity.apache.org/">Apache Velocity</a>. As Camel have a component for <a shape="rect" href="velocity.html">Velocity</a> integration we will use this component. Looking at the <a shape="rect" href="component.html">Component List</a> overview we can see that camel-velocity component uses the artifactId <strong>camel-velocity</strong> so therefore we need to add this to the <strong>pom.xml</strong></p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
             &lt;artifactId&gt;camel-velocity&lt;/artifactId&gt;
@@ -402,7 +402,7 @@ class=org.apache.camel.component.log.Log
 <p>And now we have a Spring conflict as Apache CXF is dependent on Spring 2.0.8 and camel-velocity is dependent on Spring 2.5.5. To remedy this we could wrestle with the <strong>pom.xml</strong> with excludes settings in the dependencies or just bring in another dependency <strong>camel-spring</strong>:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
             &lt;artifactId&gt;camel-spring&lt;/artifactId&gt;

Modified: websites/production/camel/content/tutorial-example-reportincident-part3.html
==============================================================================
--- websites/production/camel/content/tutorial-example-reportincident-part3.html (original)
+++ websites/production/camel/content/tutorial-example-reportincident-part3.html Thu Sep 14 19:25:46 2017
@@ -249,7 +249,7 @@ This is an auto generated email. You can
 <h2 id="Tutorial-Example-ReportIncident-Part3-Unittestingmail">Unit testing mail</h2>
 <p>For unit testing the consumer part we will use a mock mail framework, so we add this to our <strong>pom.xml</strong>:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;!-- unit testing mail using mock --&gt;
         &lt;dependency&gt;
             &lt;groupId&gt;org.jvnet.mock-javamail&lt;/groupId&gt;

Modified: websites/production/camel/content/tutorial-example-reportincident-part4.html
==============================================================================
--- websites/production/camel/content/tutorial-example-reportincident-part4.html (original)
+++ websites/production/camel/content/tutorial-example-reportincident-part4.html Thu Sep 14 19:25:46 2017
@@ -212,7 +212,7 @@ So we implement the logic in our webserv
 <h2 id="Tutorial-Example-ReportIncident-Part4-Unittesting">Unit testing</h2>
 <p>Now is the time we would like to unit test what we got now. So we call for camel and its great test kit. For this to work we need to add it to the pom.xml</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
             &lt;artifactId&gt;camel-core&lt;/artifactId&gt;
@@ -419,7 +419,7 @@ public class FilenameGenerator {
 <h4 id="Tutorial-Example-ReportIncident-Part4-Usingascriptlanguagetosetthefilename">Using a script language to set the filename</h4>
 <p>We could do as in the previous parts where we send the computed filename as a message header when we "kick-start" the route. But we want to learn new stuff so we look for a different solution using some of Camels many <a shape="rect" href="languages.html">Languages</a>. As <a shape="rect" href="ognl.html">OGNL</a> is a favorite language of mine (used by WebWork) so we pick this baby for a Camel ride. For starters we must add it to our pom.xml:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
             &lt;artifactId&gt;camel-ognl&lt;/artifactId&gt;

Modified: websites/production/camel/content/tutorial-example-reportincident-part5.html
==============================================================================
--- websites/production/camel/content/tutorial-example-reportincident-part5.html (original)
+++ websites/production/camel/content/tutorial-example-reportincident-part5.html Thu Sep 14 19:25:46 2017
@@ -95,7 +95,7 @@
 <h2 id="Tutorial-Example-ReportIncident-Part5-StartingCamelautomatically">Starting Camel automatically</h2>
 <p>Our current deployment model is as a war and we have the <code>web.xml</code> to help start things. Well in fact we will leverage Spring to start the world <img class="emoticon emoticon-wink" src="https://cwiki.apache.org/confluence/s/en_GB/5997/6f42626d00e36f53fe51440403446ca61552e2a2.1/_/images/icons/emoticons/wink.png" data-emoticon-name="wink" alt="(wink)">. We use it's ContextListener</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;!-- the listener that kick-starts Spring --&gt;
 	&lt;listener&gt;
 		&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
@@ -105,7 +105,7 @@
 
 <p>Then we need a standard Spring XML file so we create a new file in <code>src/main/resources</code> and name it <strong>camel-config.xml</strong>. Before we start editing this XML file we need to link to it from the web.xml file. So we add this snippet to the web.xml:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;!-- location of spring xml files --&gt;
 	&lt;context-param&gt;
 	    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
@@ -116,7 +116,7 @@
 
 <p>Now we are ready to edit the <strong>camel-config.xml</strong> file that is a standard Spring XML bean file. So you can add standard spring beans and whatnot you like to do and can do with Spring.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        xsi:schemaLocation=&quot;
@@ -128,7 +128,7 @@
 
 <p>Now we are nearly there, we just need to add Camel to the Spring XML file, so Spring knows Camel exists and can start it. First we need to add Camel to the schema location in the top of the XML file.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
        ...
        xsi:schemaLocation=&quot;
             http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
@@ -138,14 +138,14 @@
 
 <p>Now we are ready to let <a shape="rect" href="spring.html">Spring and Camel</a> work together. What we need to do is adding a <a shape="rect" href="camelcontext.html">CamelContext</a> to the Spring XML file. Camel ships with a CamelContextFactoryBean that is a Spring factory bean we should use for creating and initializing the SpringCamelContext. SpringCamelContext is extending CamelContext to be Spring aware so Camel and Spring can work nicely together. For instance the <a shape="rect" href="registry.html">Registry</a> will now use Spring bean lookup. So any spring bean can now easily be lookup and used from Camel. Well back to today's lesson. So we can create a SpringCamelContext using the factory bean as illustrated below:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
    &lt;bean id=&quot;camel&quot; class=&quot;org.apache.camel.spring.CamelContextFactoryBean&quot;/&gt;
 ]]></script>
 </div></div>
 
 <p>However this is not used very often as Spring has support for custom namespace, so Camel has a CamelNamespaceHandler so we can create Camel using nice XML syntax as:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;camelContext id=&quot;camel&quot; xmlns=&quot;http://activemq.apache.org/camel/schema/spring&quot;&gt;
        ...
     &lt;/camelContext&gt;
@@ -167,14 +167,14 @@
 
 <p>Using a spring bean we just declare the route builder using a regular spring bean:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
    &lt;bean id=&quot;myrouter&quot; class=&quot;org.apache.camel.example.reportincident.ReportIncidentRoutes&quot;/&gt;
 ]]></script>
 </div></div>
 
 <p>And then we can refer to it from our CamelContext:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;camelContext id=&quot;camel&quot; xmlns=&quot;http://activemq.apache.org/camel/schema/spring&quot;&gt;
        &lt;routeBuilderRef ref=&quot;myrouter&quot;/&gt;
     &lt;/camelContext&gt;
@@ -185,7 +185,7 @@
 
 <p>The package scanning solution is for convenience to refer to a java package and Camel will scan all classes within this package for RouteBuilder classes. If using this then you dont need to declare your route builder as a Spring bean. So the XML can be reduced to.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;camelContext id=&quot;camel&quot; xmlns=&quot;http://activemq.apache.org/camel/schema/spring&quot;&gt;
        &lt;package&gt;org.apache.camel.example.reportincident&lt;/package&gt;
     &lt;/camelContext&gt;
@@ -267,7 +267,7 @@ public class ReportIncidentEndpointImpl
 
 <p>And then we need to instruct Spring to set this property. Turning back to cxf-config.xml from part 4 we can add a reference to our camel context</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        xmlns:jaxws=&quot;http://cxf.apache.org/jaxws&quot;
@@ -302,7 +302,7 @@ public class ReportIncidentEndpointImpl
 
 <p>And since <strong>cxf-config.xml</strong> is dependent on <strong>camel-config.xml</strong> we need to have correct ordering in our web.xml where we have defined the XML files to load by Spring. So we set the <strong>camel-config.xml</strong> before the <strong>cxf-config.xml</strong> so Spring have created the SpringCamelContext and registered it in its registry with the id = camel.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;!-- location of spring xml files --&gt;
     &lt;context-param&gt;
         &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
@@ -326,7 +326,7 @@ public class ReportIncidentEndpointImpl
 
 <p>So the .wsdl should be changed from:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;xs:element name=&quot;inputReportIncident&quot;&gt;
         &lt;xs:complexType&gt;
 ]]></script>
@@ -334,7 +334,7 @@ public class ReportIncidentEndpointImpl
 
 <p>To include a name attribute of the complex types:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;xs:element name=&quot;inputReportIncident&quot;&gt;
         &lt;xs:complexType name=&quot;inputReportIncident&quot;&gt;
 ]]></script>

Modified: websites/production/camel/content/tutorial-for-camel-on-google-app-engine.html
==============================================================================
--- websites/production/camel/content/tutorial-for-camel-on-google-app-engine.html (original)
+++ websites/production/camel/content/tutorial-for-camel-on-google-app-engine.html Thu Sep 14 19:25:46 2017
@@ -120,7 +120,7 @@
 <p>Open the <code>camel-example-gae/src/main/webapp/WEB-INF/application-web.xml</code> file and replace the template application name <code>replaceme</code> with the name of the application that you created in the previous section. Optionally, adjust the version number if needed.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>appengine-web.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
 &lt;appengine-web-app xmlns=&quot;http://appengine.google.com/ns/1.0&quot;&gt;
     &lt;!-- 

Modified: websites/production/camel/content/tutorial-oauth.html
==============================================================================
--- websites/production/camel/content/tutorial-oauth.html (original)
+++ websites/production/camel/content/tutorial-oauth.html Thu Sep 14 19:25:46 2017
@@ -89,7 +89,7 @@
 <pre>svn co http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-gauth camel-example-gauth
 </pre>
 </div></div><p>Open <code>camel-example-gauth/pom.xml</code> file and define values for the application properties e.g.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>pom.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; 
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; 
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; 
   xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
 
@@ -106,7 +106,7 @@
 &lt;/project&gt;
 ]]></script>
 </div></div><p>or</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>pom.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; 
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; 
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; 
   xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
 
@@ -378,7 +378,7 @@ public class TutorialTokenProcessor impl
 }
 ]]></script>
 </div></div><p>For further details about implementing OAuth integration layers in web application refer to the <a shape="rect" href="gauth.html">gauth</a> component documentation.</p><h4 id="Tutorial-OAuth-Configuration">Configuration</h4><p>The <code>TutorialController</code> and <code>TutorialService</code> are set up in their own Spring application context. The <code>TutorialController</code> is scanned from the classpath using Spring's <code>&lt;ctx:component-scan&gt;</code> element. It is an <a shape="rect" class="external-link" href="http://static.springsource.org/spring/docs/2.5.x/reference/mvc.html#mvc-annotation" rel="nofollow">annotation-based Spring MVC controller</a>.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>context-web.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
     xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
     xmlns:ctx=&quot;http://www.springframework.org/schema/context&quot;
     xmlns:util=&quot;http://www.springframework.org/schema/util&quot;
@@ -400,7 +400,7 @@ http://www.springframework.org/schema/ut
     
 &lt;/beans&gt;]]></script>
 </div></div><p>The integration layer and its <code>CamelContext</code> is configured in <code>context-camel.xml</code>. This application context also configures the <a shape="rect" href="gauth.html">gauth</a> component with an application specific consumer key and consumer secret. These are read from a <code>context.properties</code> file.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>context-camel.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        xmlns:context=&quot;http://www.springframework.org/schema/context&quot;
        xmlns:camel=&quot;http://camel.apache.org/schema/spring&quot;
@@ -432,7 +432,7 @@ http://camel.apache.org/schema/spring/ca
 &lt;/beans&gt;
 ]]></script>
 </div></div><p>Both application contexts are referenced in the application's <code>web.xml</code>.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>web.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;web-app 
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;web-app 
 xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
 xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;

Modified: websites/production/camel/content/tutorial-on-using-camel-in-a-web-application.html
==============================================================================
--- websites/production/camel/content/tutorial-on-using-camel-in-a-web-application.html (original)
+++ websites/production/camel/content/tutorial-on-using-camel-in-a-web-application.html Thu Sep 14 19:25:46 2017
@@ -96,7 +96,7 @@
 <p>To enable spring add a context loader listener to your <strong>/WEB-INF/web.xml</strong> file</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;web-app xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot;
          xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -120,7 +120,7 @@
 <p>For example</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -162,7 +162,7 @@ src/main/webapp/WEB-INF
 <p>You should update your Maven pom.xml to enable WAR packaging/naming like this...</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;project&gt;
     ...
     &lt;packaging&gt;war&lt;/packaging&gt;
@@ -179,7 +179,7 @@ src/main/webapp/WEB-INF
 <p>Please refer to the <a shape="rect" class="external-link" href="http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin" rel="nofollow">help for more information on using jetty:run</a> - but briefly if you add the following to your pom.xml </p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
   &lt;build&gt;
     &lt;plugins&gt;
       &lt;plugin&gt;

Modified: websites/production/camel/content/tutorial-osgi-camel-part1.html
==============================================================================
--- websites/production/camel/content/tutorial-osgi-camel-part1.html (original)
+++ websites/production/camel/content/tutorial-osgi-camel-part1.html Thu Sep 14 19:25:46 2017
@@ -246,7 +246,7 @@ public class TransformServiceImpl implem
 
 <p>Create the file <code>demo-service-bundle-contxt.xml</code> in the folder <code>src/main/resources/META-INF/spring</code></p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>demo-service-bundle-contxt.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -265,7 +265,7 @@ public class TransformServiceImpl implem
 
 <p>Create the file <code>demo-service-bundle-contxt-osgi.xml</code> in the folder <code>src/main/resources/META-INF/spring</code></p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>demo-service-bundle-contxt-osgi.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
 	xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -434,7 +434,7 @@ Import-Package: demo.service;version=&qu
 
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>CamelContext.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -459,7 +459,7 @@ Import-Package: demo.service;version=&qu
 
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>bundle-context-osgi.xml</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -484,7 +484,7 @@ Import-Package: demo.service;version=&qu
 <p>Prior to run/launch the command generating the MANIFEST file, you must modify the pom.xml file in order to allow the OSGI bundle to import/use the services classes : demo.service</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>pom demo.camel-bundle</b></div><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;project xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
   xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;

Modified: websites/production/camel/content/tutorial-osgi-camel-part2.html
==============================================================================
--- websites/production/camel/content/tutorial-osgi-camel-part2.html (original)
+++ websites/production/camel/content/tutorial-osgi-camel-part2.html Thu Sep 14 19:25:46 2017
@@ -381,7 +381,7 @@ mvn clean install
 <p>Remark : The ORM uses to persist the information is Hibernate but it can be changed to another existing like iBatis, Apache OpenJPA, ...</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;hibernate-mapping schema=&quot;REPORT&quot;&gt;
 	&lt;class name=&quot;org.apache.camel.example.reportincident.model.Incident&quot; table=&quot;T_INCIDENT&quot;&gt;
 		&lt;meta attribute=&quot;extends&quot;&gt;Abstract&lt;/meta&gt;
@@ -416,7 +416,7 @@ mvn clean install
 <p>Here is the content of the hibernate.cfg.xml that you must create in the folder <code>src/config</code> of hibernate.db</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;!-- MySQL DB --&gt;
 
 &lt;hibernate-configuration&gt;
@@ -439,7 +439,7 @@ mvn clean install
 <p>The pom.xml file of your reportincident.db project must be modified like this :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
 	xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
@@ -699,7 +699,7 @@ public class IncidentDAOImpl implements
 <p>The injection is defined in the file called <code>spring-dao-beans.xml</code> that you will create in the folder <code>src/main/resources/META-INF/spring</code> :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot; 
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -723,7 +723,7 @@ public class IncidentDAOImpl implements
 <p>So realize this goal, you will create the file <code>spring-datasource-beans.xml</code> in the same folder directory with the following information :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
 	&lt;!--  Hibernate SessionFactory Definition --&gt;
 	&lt;bean id=&quot;sessionFactory&quot; class=&quot;org.springframework.orm.hibernate3.LocalSessionFactoryBean&quot;&gt;
@@ -893,7 +893,7 @@ public class IncidentServiceImpl impleme
 <p>The same remark as explained previously applies here concerning the DAO injection. So, you will create the following file <code>spring-service-beans-dao.xml</code> in the folder <code>src/main/resources/META-INF/spring</code> to inject the dependency of the DAO to our service.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;bean id=&quot;incidentServiceTarget&quot; class=&quot;org.apache.camel.example.reportincident.service.impl.IncidentServiceImpl&quot;&gt;
             &lt;property name=&quot;incidentDAO&quot;&gt;
 			...
@@ -912,7 +912,7 @@ public class IncidentServiceImpl impleme
 
 <p>To generate the code that our application will use, we will work with following WSDL contract <code>report_incident.wsdl</code> that you create in the directory <code>src/main/resources/META-INF/wsdl</code>:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 
 &lt;wsdl:definitions xmlns:soap=&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;
@@ -995,7 +995,7 @@ public class IncidentServiceImpl impleme
 
 <p>Add the following line in your <code>pom.xml</code> of the project <code>reportincident.webservice</code></p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;!-- CXF wsdl2java generator, will plugin to the compile goal --&gt;
 			&lt;plugin&gt;
 				&lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;

Modified: websites/production/camel/content/tutorial-osgi-camel-part2a.html
==============================================================================
--- websites/production/camel/content/tutorial-osgi-camel-part2a.html (original)
+++ websites/production/camel/content/tutorial-osgi-camel-part2a.html Thu Sep 14 19:25:46 2017
@@ -101,7 +101,7 @@
 
 <p>To transform the reportincident.model project, we will execute the steps 1) 2) and 3) because no services must be registered for this project. So, update the pom.xml file created and add/change what is put in the code below in XML comment with word STEP</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
 	xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
@@ -222,7 +222,7 @@ Import-Package: META-INF.org.apache.came
 
 <p>Nevertheless, it is interesting to mention that we have exported the package <code>org.apache.camel.example.reportincident.dao</code> and defined <code>org.apache.camel.example.reportincident.dao.impl</code> as private. Why, the reason is very simple, we would like to export only the interface to another 'service' bundles and keep internally the implementation.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;Private-Package&gt;org.apache.camel.example.reportincident.dao.impl&lt;/Private-Package&gt;
     &lt;Export-Package&gt;org.apache.camel.example.reportincident.dao&lt;/Export-Package&gt;
 ]]></script>
@@ -230,7 +230,7 @@ Import-Package: META-INF.org.apache.came
 <div class="confluence-information-macro confluence-information-macro-tip"><span class="aui-icon aui-icon-small aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>Discovering all the classes used by a third party library like Hibernate can be cumbersome and takes time. An interesting alternative is to use the command 'DynamicImport-Package' to resolve classloading issue. &lt;DynamicImport-Package&gt; *&lt;/DynamicImport-Package&gt;</p></div></div>
 <p>In order to test the tip, update your pom.xml with the following info :</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;Import-Package&gt;
 	META-INF.org.apache.camel.example.reportincident.model,
 	com.mysql.jdbc,
@@ -278,7 +278,7 @@ Import-Package: META-INF.org.apache.came
 <em>applications that will gain the ability to write simpler, more testable bundles backed by a strong component model.</em></p></blockquote>
 <p>Create the file <code>persistence-osgi.xml</code> in the directory <code>src/main/resources/META-INF/spring</code> and add the lines :</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -348,7 +348,7 @@ password=
 <p>Adding this line in the Import-Package is not enough to have access to the OSGI service. The file <code>spring-service-beans-dao.xml</code> must be modified to have a reference to this interface through the osgi:reference namespace : </p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
     &lt;property name=&quot;incidentDAO&quot;&gt;
         &lt;osgi:reference interface=&quot;org.apache.camel.example.reportincident.dao.IncidentDAO&quot;/&gt;
@@ -362,7 +362,7 @@ password=
 <p>To expose our service as an OSGI service, we will create the file <code>service-osgi.xml</code> in the directory <code>src/main/resources/META-INF/spring</code> and add the code.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -387,7 +387,7 @@ password=
 <p>This bundle will not be exported as an OSGI service. So, we only need to modify the content of &lt;Export-Package&gt; to export the classes generated by the wsl2java maven plugin and the wsdl file :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     &lt;Export-Package&gt;
 	org.apache.camel.example.reportincident,
      	&#39;=META-INF.wsdl&#39;

Modified: websites/production/camel/content/tutorial-osgi-camel-part2b.html
==============================================================================
--- websites/production/camel/content/tutorial-osgi-camel-part2b.html (original)
+++ websites/production/camel/content/tutorial-osgi-camel-part2b.html Thu Sep 14 19:25:46 2017
@@ -92,7 +92,7 @@
 <p>First, create the file <code>camel-context.xml</code> in the directory <code>src/main/resources/META-INF/spring</code> and add the lines :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
 	xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -126,7 +126,7 @@
 
 <p>To work with it, resources (= spring beans) declared in CXF project must be imported using the statement <code>import resource</code>. </p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
  &lt;import resource=&quot;classpath:META-INF/cxf/cxf.xml&quot; /&gt;
  &lt;import resource=&quot;classpath:META-INF/cxf/cxf-extension-soap.xml&quot; /&gt;
@@ -143,7 +143,7 @@
 <p>The camel CXF endpoint is configurated like this :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
 	&lt;!-- webservice endpoint --&gt; 
 	&lt;cxf:cxfEndpoint id=&quot;reportIncident&quot;
@@ -172,7 +172,7 @@ Like CXF, we will use spring xml file to
 
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;beans
   xmlns=&quot;http://www.springframework.org/schema/beans&quot;
   xmlns:amq=&quot;http://activemq.apache.org/schema/core&quot;
@@ -300,7 +300,7 @@ Like CXF, we will use spring xml file to
 <p>At the bundle startup, Spring will instantiate the beans declared and in consequence start the queuing engine. We haven't changed the content of the file corresponding to what is proposed in the ServiceMix distribution but you can use here the same technique described for the Datasource and add properties that you configure through by example a <code>org.apache.activemq.config.etc</code> file.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
     ...
     &lt;transportConnectors&gt;
         &lt;transportConnector name=&quot;${name}&quot; uri=&quot;${uri}&quot; discoveryUri=&quot;${discoveryUri}&quot;/&gt;
@@ -332,7 +332,7 @@ Like CXF, we will use spring xml file to
 <p>The pom.xml file must be modified to add properties required by Spring blueprint. So add the following lines :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
     &lt;instructions&gt;
       &lt;Bundle-SymbolicName&gt;${pom.artifactId}&lt;/Bundle-SymbolicName&gt;
@@ -364,7 +364,7 @@ Like CXF, we will use spring xml file to
 <p>First, create a spring DSL file <code>osgi-queuingservice.xml</code> in the directory {{src/main/resources/META-INF-spring}}directory containing the following information :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -392,7 +392,7 @@ Like CXF, we will use spring xml file to
 <p>Next adapt the POM.xml file like this to instruct the felix plugin how to generate the MANIFEST.MF file</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
 			&lt;plugin&gt;
 				&lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
@@ -430,7 +430,7 @@ Like CXF, we will use spring xml file to
 <p>So, adapt the <code>camel-context.xml</code> file :   </p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;bean id=&quot;bindyDataformat&quot; class=&quot;org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat&quot;&gt;
 		&lt;constructor-arg type=&quot;java.lang.String&quot; value=&quot;org.apache.camel.example.reportincident.model&quot; /&gt; (1)
 	&lt;/bean&gt;
@@ -674,7 +674,7 @@ public class Feedback {
 
 <p>This first route will be used by Apache Camel to read files deposited in the directory. Here is the explanation of the route</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 	&lt;camel:camelContext trace=&quot;true&quot; xmlns=&quot;http://camel.apache.org/schema/osgi&quot;&gt; (1)
 
 		&lt;camel:route&gt; 
@@ -700,7 +700,7 @@ public class Feedback {
 
 <p>The second route will read incoming web services call, extract the XML messages from the web services, transform it into an InputReportIncident, send the object to a bean who will convert it into an Incident object and put the result in the queue:in.</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...		 
 		&lt;camel:route&gt;
 			&lt;camel:from uri=&quot;cxf:bean:reportIncident&quot; /&gt; (1)
@@ -732,7 +732,7 @@ public class Feedback {
 <p>The last route will read messages of the queue and send them to the bean <code>IncidentSaver</code> to save the incidents in the database</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...		 
 	
 		&lt;camel:route&gt;
@@ -749,7 +749,7 @@ public class Feedback {
 <p>Now that the reportincident.routing project is ready, we will modify the pom.xml file to add required instructions to generate the jar and MANIFEST.MF file of the bundle :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 ...
 					&lt;instructions&gt;
 						&lt;Bundle-SymbolicName&gt;${pom.artifactId}&lt;/Bundle-SymbolicName&gt;

Modified: websites/production/camel/content/tutorial-osgi-camel-part2c.html
==============================================================================
--- websites/production/camel/content/tutorial-osgi-camel-part2c.html (original)
+++ websites/production/camel/content/tutorial-osgi-camel-part2c.html Thu Sep 14 19:25:46 2017
@@ -94,7 +94,7 @@
 <p>To display the incidents in a web page, we will create the file <code>HomePage.html</code> in the directory <code>src/main/java/org/apache/camel/example/reportincident</code>. This file contain html tags with some wicket tags. One of the benefit of Apache Wicket compare to other web frameworks is that it try to keep the html page as clean as possible to facilitate the work of the web designer and integration with code made by the developers. It is a component framework like JSF but not based on programmable page like JSP, ...</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: html; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;html&gt;
 &lt;head&gt;
 	&lt;title&gt;Report Incident HomePage&lt;/title&gt;
@@ -346,7 +346,7 @@ public class WicketApplication extends W
 <p>Now that the code/web pages are ready, we have to create the <code>web.xml</code> file in the directory <code>src/main/webapp/WEB-INF</code></p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
 &lt;web-app xmlns=&quot;http://java.sun.com/xml/ns/j2ee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
 	xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;
@@ -393,7 +393,7 @@ public class WicketApplication extends W
 <p>To allow our web bundle to have access to the osgi (1) service <code>org.apache.camel.example.reportincident.service.IncidentService</code>, we have to add the following line in the file called <code>applicationContext</code> that we create in the directory <code>src/main/webapp/WEB-INF</code>.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot;?&gt;
 &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
@@ -418,7 +418,7 @@ xsi:schemaLocation=&quot;http://www.spri
 (4) - we want to define the web application context &lt;Webapp-Context&gt; who will be published by <a shape="rect" class="external-link" href="http://wiki.ops4j.org/display/paxweb/Pax+Web" rel="nofollow">PAX Web</a> </p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
 	xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
@@ -692,7 +692,7 @@ mvn clean install -Dtest=false  -DfailIf
 (3) - The camel feature include a list of camel-xx features.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;!--
     Licensed to the Apache Software Foundation (ASF) under one or more
@@ -793,7 +793,7 @@ mvn clean install -Dtest=false  -DfailIf
 <p>To generate the jar file containing the feature xml file, adapt the pom.xml like this :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
 	xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
 	&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
@@ -1248,7 +1248,7 @@ State         Version        Name
 and the following SOAP message request by example :</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rep=&quot;http://reportincident.example.camel.apache.org&quot;&gt;
    &lt;soapenv:Header/&gt;
    &lt;soapenv:Body&gt;

Modified: websites/production/camel/content/twitter.html
==============================================================================
--- websites/production/camel/content/twitter.html (original)
+++ websites/production/camel/content/twitter.html Thu Sep 14 19:25:46 2017
@@ -87,7 +87,7 @@
         <tr>
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2 id="Twitter-Twitter">Twitter</h2><p><strong>Available as of Camel 2.10</strong></p><p>The Twitter component enables the most useful features of the Twitter API by encapsulating <a shape="rect" class="external-link" href="http://twitter4j.org/" rel="nofollow">Twitter4J</a>. It allows direct, polling, or event-driven consumption of timelines, users, trends, and direct messages. Also, it supports producing messages as status updates or direct messages.</p><p>Twitter now requires the use of OAuth for all client application authentication. In order to use camel-twitter with your account, you'll need to create a new application within Twitter at <a shape="rect" class="external-link" href="https://dev.twitter.com/apps/new" rel="nofollow">https://dev.twitter.com/apps/new</a> and grant the application access to your account. Finally, generate your access token and secret.</p><p>Maven users will need to add the following dependency to their pom.xml fo
 r this component:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-twitter&lt;/artifactId&gt;
     &lt;version&gt;${camel-version}&lt;/version&gt;



Mime
View raw message