Skip to content

Commit

Permalink
fixed this project.
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-posta committed Mar 5, 2015
1 parent b1af644 commit 44e82bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version>

<properties>
<camel.version>2.8.0-fuse-04-01</camel.version>
<cxf.version>2.4.3-fuse-02-02</cxf.version>
<camel.version>2.14.1</camel.version>
<cxf.version>3.0.2</cxf.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -94,8 +94,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void process(Exchange exchange) throws Exception {
Message inMessage = exchange.getIn();
String operationName = inMessage.getHeader(CxfConstants.OPERATION_NAME, String.class);
if ("getCustomer".equalsIgnoreCase(operationName)) {
String id = inMessage.getHeader("OrigId", String.class);
String id = inMessage.getBody(String.class);
LOG.info("----invoking getCustomer, Customer id is: " + id);

long idNumber = Long.parseLong(id);
Expand All @@ -57,7 +57,7 @@ public void process(Exchange exchange) throws Exception {
exchange.getOut().setBody(response);
}

// exchange.getOut().setBody(c);
exchange.getOut().setBody(c);


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void configure() throws Exception {
// from("cxfrs:bean:rsServer")
from("cxfrs://http://localhost:9090/route?resourceClasses=com.fusesource.samples.CustomerServiceResource")
.setHeader(Exchange.FILE_NAME, simple("test-${body}.xml"))
.pollEnrich("file:src/data?noop=true", 1000, new CustomerEnricher())
// .pollEnrich("file:src/data?noop=true", 1000, new CustomerEnricher())
.process(new CustomerServiceProcessor())
.log("Here is the message that was enriched: ${body}");
}
Expand Down

0 comments on commit 44e82bf

Please sign in to comment.