Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DA1A1200D0F for ; Thu, 14 Sep 2017 21:26:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D9AE31609C6; Thu, 14 Sep 2017 19:26:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D4F691609D8 for ; Thu, 14 Sep 2017 21:26:07 +0200 (CEST) Received: (qmail 4522 invoked by uid 500); 14 Sep 2017 19:26:06 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 3859 invoked by uid 99); 14 Sep 2017 19:26:06 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2017 19:26:06 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 871E73A0DC0 for ; Thu, 14 Sep 2017 19:26:01 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170914192601.871E73A0DC0@svn01-us-west.apache.org> archived-at: Thu, 14 Sep 2017 19:26:11 -0000 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 @@

Maven 2

Axis dependencies is available for maven 2 so we configure our pom.xml as:

-
@@ -415,7 +415,7 @@ mvn jetty:run

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:

- @@ -881,7 +881,7 @@ public class ReportIncidentServiceTest e

Unit Test calling WebService

What if you would like to execute a unit test where you send a webservice request to the AxisReportIncidentService 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:

-
@@ -992,7 +992,7 @@ Since we use annotations on the field di

And since we use the @EndpointInjected that refers to the endpoint with the id backup directly we can loose the template tag in the xml, so its shorter:

-
  • Put in an empty test method just for the moment (so when we run this we can see that "1 test succeeded")
  • Add the Spring <beans> element (including the Camel Namespace) with an empty <camelContext> element to the Spring context, like this:
    -

    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:

    -

    And then we can refer to it from our CamelContext:

    - @@ -334,7 +334,7 @@ public class ReportIncidentEndpointImpl

    To include a name attribute of the complex types:

    - 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 @@

    Open the camel-example-gae/src/main/webapp/WEB-INF/application-web.xml file and replace the template application name replaceme with the name of the application that you created in the previous section. Optionally, adjust the version number if needed.

    appengine-web.xml
    -

    or

    pom.xml
    -

    For further details about implementing OAuth integration layers in web application refer to the gauth component documentation.

    Configuration

    The TutorialController and TutorialService are set up in their own Spring application context. The TutorialController is scanned from the classpath using Spring's <ctx:component-scan> element. It is an annotation-based Spring MVC controller.

    context-web.xml
    -

    The integration layer and its CamelContext is configured in context-camel.xml. This application context also configures the gauth component with an application specific consumer key and consumer secret. These are read from a context.properties file.

    context-camel.xml
    -

    Both application contexts are referenced in the application's web.xml.

    web.xml
    - @@ -230,7 +230,7 @@ Import-Package: META-INF.org.apache.came

    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. <DynamicImport-Package> *</DynamicImport-Package>

    In order to test the tip, update your pom.xml with the following info :

    -