You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/05/13 08:19:20 UTC
[camel-spring-boot-examples] 02/02: Minor fixes
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git
commit 3a43bfa6dc9031f04f768856e8fb429a35167985
Author: Federico Valeri <fe...@gmail.com>
AuthorDate: Tue May 10 08:18:11 2022 +0200
Minor fixes
Signed-off-by: Federico Valeri <fe...@gmail.com>
---
spring-boot-jta-jpa/readme.adoc | 2 +-
spring-boot-jta-jpa/src/main/java/sample/camel/CamelRoutes.java | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/spring-boot-jta-jpa/readme.adoc b/spring-boot-jta-jpa/readme.adoc
index f9f8a9a..929625c 100644
--- a/spring-boot-jta-jpa/readme.adoc
+++ b/spring-boot-jta-jpa/readme.adoc
@@ -51,7 +51,7 @@ Test the service endpoint from another terminal:
----
ADDRESS="http://localhost:8080"
-curl -X POST $ADDRESS/api/message/hello
+curl -X POST $ADDRESS/api/messages/hello
curl $ADDRESS/api/messages
----
diff --git a/spring-boot-jta-jpa/src/main/java/sample/camel/CamelRoutes.java b/spring-boot-jta-jpa/src/main/java/sample/camel/CamelRoutes.java
index 302eb99..6420b71 100644
--- a/spring-boot-jta-jpa/src/main/java/sample/camel/CamelRoutes.java
+++ b/spring-boot-jta-jpa/src/main/java/sample/camel/CamelRoutes.java
@@ -29,7 +29,7 @@ public class CamelRoutes extends RouteBuilder {
@Override
public void configure() {
restConfiguration()
- .contextPath(contextPath.substring(0, contextPath.length() - 2));
+ .contextPath(contextPath);
rest("/messages")
.produces("text/plain")
@@ -40,14 +40,14 @@ public class CamelRoutes extends RouteBuilder {
.to("direct:trans");
from("direct:messages")
- .to("jpa:it.fvaleri.integ.AuditLog?namedQuery=getAuditLog")
+ .to("jpa:sample.camel.AuditLog?namedQuery=getAuditLog")
.convertBodyTo(String.class);
from("direct:trans")
.transacted()
.setBody(simple("${headers.message}"))
.to("bean:auditLog?method=createAuditLog(${body})")
- .to("jpa:it.fvaleri.integ.AuditLog")
+ .to("jpa:sample.camel.AuditLog")
.setBody(simple("${headers.message}"))
.to("jms:outbound?disableReplyTo=true")
.choice()
@@ -61,6 +61,6 @@ public class CamelRoutes extends RouteBuilder {
from("jms:outbound")
.log("Message out: ${body}")
.to("bean:auditLog?method=createAuditLog(${body}-ok)")
- .to("jpa:it.fvaleri.integ.AuditLog");
+ .to("jpa:sample.camel.AuditLog");
}
}