Hexagonal Architecture with Apache Camel

2017-12-12 Thread Bilgin Ibryam
hi, fellow Camel users, I've been using Camel for a long time now and realized that most the Camel apps are kinda Hexagonal. I recently blogged about using Hexagonal architecture (Ports and Adapters/Edge Component) with Camel in case it is useful for others as well. http://www.ofbizian.com/2017/1

FluentProducerTemplate.send() with ExhangePattern

2017-12-12 Thread Balazs Szeti
Hi Camel Users, Is there a simple way to set the ExhangePattern with FluentProducerTemplate? I tried to send an InOut exchange to a direct endpoint in a unit test, but couldn't find a better way than building the Exchange object first and use withExchange(). It would be nice to have something li

Re: FluentProducerTemplate.send() with ExhangePattern

2017-12-12 Thread Claus Ibsen
See the javadoc Send is in only Request is in out Short mail as i type on ipad tir. 12. dec. 2017 kl. 17.22 skrev Balazs Szeti : > Hi Camel Users, > > Is there a simple way to set the ExhangePattern with > FluentProducerTemplate? > > I tried to send an InOut exchange to a direct endpoint in a u

Re: Hexagonal Architecture with Apache Camel

2017-12-12 Thread Claus Ibsen
Great blog we should add it to the link collection tir. 12. dec. 2017 kl. 14.49 skrev Bilgin Ibryam : > hi, fellow Camel users, > > I've been using Camel for a long time now and realized that most the Camel > apps are kinda Hexagonal. I recently blogged about using Hexagonal > architecture (Ports

Re: Exchange stats

2017-12-12 Thread Claus Ibsen
There is an infligjt registry and you can also get details from jmx tir. 12. dec. 2017 kl. 08.49 skrev Mihai Glonț : > Hi, > > In our application we have a route from a SEDA queue to an Exec endpoint. > > I know how to retrieve the number of pending exchanges, but is there a > way to tell how man

Re: FluentProducerTemplate.send() with ExhangePattern

2017-12-12 Thread Balazs Szeti
Hi, Thanks for the quick response. request() returns the body Object, but having a second look at the source I see that this works: .request(Exchange.class) returns the whole Exchange. Thanks, Balazs On Tue, Dec 12, 2017 at 12:03 PM, Claus Ibsen wrote: > See the javadoc > > Send is in only >

Re: Exchange stats

2017-12-12 Thread Mihai Glonț
Thank you, Claus. After emailing this morning I had a look at the JMX endpoint and saw that this information is available. For clarity, inflight registry below refers to http://static.javadoc.io/org.apache.camel/camel-core/2.20.1/org/apache/camel/impl/DefaultInflightRepository.html#size--, correct

Camel REST Spring Boot Pojo Mandatory Json Properties

2017-12-12 Thread Richard James
Hi, I am in the process of implementing a REST Api using Spring boot and Camel. This is up and running and works well. What I am currently trying to enforce are some mandatory properties within the POJO/JSON. I have attempted a number of different ways including using bean validator (@NotNull) as

RE: Camel REST Spring Boot Pojo Mandatory Json Properties

2017-12-12 Thread Steve Huston
I don't have a REST-specific example to show you, but in other scenarios I've done, after unmarshalling to POJO: .to("bean-validator://validate-request") If the validator annotations find a violation an exception will be thrown. -Steve > -Original Message- > From: Richard James [mailto

Re: Camel CDI with standalone JTA in Weld SE

2017-12-12 Thread Gary Hodgson
Hi, I just wanted to update this thread that I made some progress and believe I have a somewhat working version with JavaSE, narayana, camel and activemq. Using the example in [0] I tried using a JcaPooledConnectionFactory to handle the XA and this seems to work. The pertinent commit is [1]. Ther

Re: Camel REST Spring Boot Pojo Mandatory Json Properties

2017-12-12 Thread Richard James
Thanks Steve, that has worked nicely with the REST Api. I have been able to use that endpoint to do the necessary validation, including identifying null values. I have also been able to implement more custom validation e.g. specifying expected string length. Thank you for pointing me in the right

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-12 Thread Daniel Langevin
I ty but receive the same result with mime-multipart. Seams like mime-multipart is not in camel-spring-2.17.7.jar. I will checked that tommorow. Thank's Daniel >>> "Siano, Stephan" 2017-12-12 02:50 >>> Hi, the name of the xml‑element is "mime‑multipart", not "mimeMultipart". Can yo

Re: If-Modified-Since header causing 500 errors with Camel 2.18.4

2017-12-12 Thread Rajpal Paryani
Hi Claus, Thanks for your response. I somehow missed this .. Can you please confirm if you were talking about "throwExceptionOnFailure" property or something else ? If yes , we have already set it to "false" Looking forward to your response. Thanks, Raj On Tue, Nov 7, 2017 at 7:32 AM, Claus Ib

RE: Rép. : RE: camel-mail IMAP mime-multipart splitAttachment

2017-12-12 Thread Daniel Langevin
OK finaly i check and mimeMultipart is supposed to be the good spell Here the definition in camel-spring-2.17.7.xsd MIME Multipart data format Specify the subtype of the MIME Multipart. Default is mixed.. Default value: mixed Defines whether a message without attachment i