You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/02/17 13:30:33 UTC

svn commit: r745008 - /camel/trunk/examples/camel-example-reportincident/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java

Author: ningjiang
Date: Tue Feb 17 12:30:32 2009
New Revision: 745008

URL: http://svn.apache.org/viewvc?rev=745008&view=rev
Log:
Fixed the build error of camel-example-reportincident

Modified:
    camel/trunk/examples/camel-example-reportincident/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java

Modified: camel/trunk/examples/camel-example-reportincident/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java?rev=745008&r1=745007&r2=745008&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-reportincident/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java (original)
+++ camel/trunk/examples/camel-example-reportincident/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java Tue Feb 17 12:30:32 2009
@@ -18,7 +18,7 @@
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.builder.RouteBuilder;
-import org.apache.camel.component.file.NewFileComponent;
+import org.apache.camel.component.file.FileComponent;
 import org.apache.camel.impl.DefaultCamelContext;
 import org.apache.camel.language.bean.BeanLanguage;
 
@@ -55,16 +55,16 @@
             // we need to convert the CXF payload to InputReportIncident that FilenameGenerator and velocity expects
             .convertBodyTo(InputReportIncident.class)
             // then set the file name using the FilenameGenerator bean
-            .setHeader(NewFileComponent.HEADER_FILE_NAME, BeanLanguage.bean(FilenameGenerator.class, "generateFilename"))
+            .setHeader(FileComponent.HEADER_FILE_NAME, BeanLanguage.bean(FilenameGenerator.class, "generateFilename"))
             // and create the mail body using velocity templating
             .to("velocity:MailBody.vm")
             // and store the file
-            .to("newfile://target/subfolder")
+            .to("file://target/subfolder")
             // return OK as response
             .transform(constant(ok));
 
         // second part from the file backup -> send email
-        from("newfile://target/subfolder")
+        from("file://target/subfolder")
             // set the subject of the email
             .setHeader("subject", constant("new incident reported"))
             // send the email