Can't redirect from REST POST input to AMQ endpoint

2018-04-24 Thread Steve Hiller
Hi Folks, Does anybody know why I can't redirect from REST POST input to AMQ endpoint? As follows: Thanks, Steve

BindingException: Cannot bind to json as message body is not json compatible.

2018-05-28 Thread Steve Hiller
Hi All, I am in the process of converting from the Spring XML style Camel configuration to using the Java DSL style, as this seems to be the preferred approach when using Spring Boot. I am trying to create a simple REST POST using org.apache.camel.builder.RouteBuilder but I keep getting the fol

Re: BindingException: Cannot bind to json as message body is not json compatible.

2018-05-28 Thread Steve Hiller
Never-mind folks, some judicious debugging through the camel code revealed that I did not have the required jar for unmarshalling the JSON. Adding compile group: 'org.apache.camel', name: 'camel-jackson', version: '2.21.1' to my gradle fixed the issue. On Monda

Simple example of passing an object in from rest to another microservice

2018-06-08 Thread Steve Hiller
Hi All, I recently watched Claus' talk called "Developing cloud-ready Camel microservices". I am trying to do the following: rest("/candidate") .post("applyx") .consumes(MediaType.APPLICATION_JSON_VALUE) .type(Candidate.class) .to("direct:passwordlessApply") ; from("direct:passwordless

Re: Simple example of passing an object in from rest to another microservice

2018-06-13 Thread Steve Hiller
No responses -- Am I doing this completely wrong? On Friday, June 8, 2018 6:07 PM, Steve Hiller wrote: Hi All, I recently watched Claus' talk called "Developing cloud-ready Camel microservices". I am trying to do the following: rest("/candidate")   .p

Re: Apache Camel branded Swag!

2018-06-14 Thread Steve Hiller
Which component do I use to order? On Thursday, June 14, 2018 8:26 AM, Zoran Regvart wrote: Hi Cameleers, with great joy I'm happy to announce that Camel branded swag: T-Shirts, Cases, Posters, Mugs, Notebooks and a whole lot more, is available at the official Apache Software Foundation

Re: Simple example of passing an object in from rest to another microservice

2018-06-14 Thread Steve Hiller
your restConfiguration or post() definition? According to the docs > (http://camel.apache.org/rest-dsl.html) it should enable conversion to/from > JSON to POJO which according your your posted logs seem to fail. > > HTH, > roman > > >> Am 13.06.2018 um 15:10 schrieb Ste

Re: Simple example of passing an object in from rest to another microservice

2018-06-14 Thread Steve Hiller
terxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1158) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:988) at org.apache.camel.component.jackson.JacksonDataFormat.marshal(JacksonDataFormat.java:166) Should I be worried about this? On Thursday, June 14, 2018 11:56 AM, Steve Hiller wr

Re: Simple example of passing an object in from rest to another microservice

2018-06-15 Thread Steve Hiller
AM, Steve Hiller wrote: > Ok, next version, which works with 1 gotcha: > > > @Component > public class RestRoute extends RouteBuilder { > > @Override > public void configure() > throws Exception > { > restConfiguration() > .component("se

Using camel-rest component with camel-grpc component

2018-06-27 Thread Steve Hiller
Hi All, Has anyone used the camel-rest component in combination with the camel-grpc component? Specifically, what is the best way to handle an input JSON ReST message that will be routed to a gRPC service, which will return a response that needs to be returned to the caller of the ReST service