Unit testing simple JPA route

2018-04-10 Thread erars+jonathan.cook
Hello, I've spent a long time with this so this request is a bit of a last resort. I have a very simple route: @Component public class IngestRouteBuilder extends RouteBuilder { @Override public void configure() throws Exception {

Re: Using dynamic expression as claimCheck key

2019-05-31 Thread erars+jonathan.cook
Sure. I will give the PR a go over the weekend. Thanks again for your help. Cheers On 2019-05-30 14:43, erars+jonathan.cook wrote: Sorry I missed the first reply. I am using camel 2.0.24 but it doesn't work what you are suggesting e.g) .setHeader("claimCheckKey&quo

Re: Using dynamic expression as claimCheck key

2019-05-30 Thread erars+jonathan.cook
/blob/41145b71c04936fa006e3e8185e7f8f2ab674308/core/camel-core/src/test/java/org/apache/camel/processor/ClaimCheckTest.java Thanks Jonathan On 2019-05-29 23:10, erars+jonathan.cook wrote: I got rid of the ManagedClaimCheck exception by upgrading my version of camel from 2.21.0 to 2.24.0. Just

Re: Using dynamic expression as claimCheck key

2019-05-30 Thread erars+jonathan.cook
aultClaimCheckRepository and the literal string is used claimCheckKey as the key to the map. Thanks. On 2019-05-30 11:22, erars+jonathan.cook wrote: Many thanks Claus. I saw you already fixed it ;-) I was going to have a go.. Do you have any suggestion for a quick work around? Could I over

Using dynamic expression as claimCheck key

2019-05-29 Thread erars+jonathan.cook
Hi, I'm trying to use the claimCheck but pass a dynamic key which would be something unique like the filename in my input message or the breadcrumbId. But it seems this processor doesn't support this? e.g) .claimCheck(ClaimCheckOperation.Set, "${headers.CamelFileName}", "body") Is there a

Re: Using dynamic expression as claimCheck key

2019-05-29 Thread erars+jonathan.cook
I got rid of the ManagedClaimCheck exception by upgrading my version of camel from 2.21.0 to 2.24.0. Just some help with dynamic key now please? Thanks On 2019-05-29 15:59, erars+jonathan.cook wrote: Hi, I'm trying to use the claimCheck but pass a dynamic key which would be something unique

Storing global properties/information

2021-03-14 Thread erars+jonathan.cook
Hello, I wondered if there was a way to store a global object in camel/camel context, which is not a String. Normally I would use a header or property on the message exchange perfectly well. However, I have found a situation where one of our routes has a processor which is writing files