Re: camel consume message from multiple jms endpoint based on condition

2016-08-03 Thread Deepak kumar
Hi Claus, We are using solace as the jms component and its a queue. Basically it is a spring boot camel project . So during application startup from the properties file it creates the jms component. application.properties:- jms.connectionType=solace jms.solace.solaceJmsVpnContext=Solace_JMS_VPN

Re: Cut file

2016-08-03 Thread Brad Johnson
Definitely the easiest way to do this is to create a simple bean an marshal the text. I don't know how many fields you have if it is just the three or not but essentially if you create small Java bean you can unmarshall the split content into a bean, ask it for the identifier file and set that to

Re: Cut file

2016-08-03 Thread Brad Johnson
Hang on let me rewrite I misread to think you were looking for static field.s On Wed, Aug 3, 2016 at 4:07 PM, Brad Johnson wrote: > In your route builder do something like follows. > > from("file:/inbox").split(body()) > .choice(when( > //use a filter or a simple expression to check to see if 1

Re: Cut file

2016-08-03 Thread Brad Johnson
In your route builder do something like follows. from("file:/inbox").split(body()) .choice(when( //use a filter or a simple expression to check to see if 1855 is present in the record/line and write it out. .to("file:outbox/1855/...append.. //end the when //otherwise write to 1856 or do a second w

Re: Netty4-http

2016-08-03 Thread Vitalii Tymchyshyn
They are populated. I read Content-Type and Access successfully. 3 серп. 2016 р. 16:20 "Vinny" пише: > Hello All, > Am I correct i assuming that the normal Camel HTTP headers are not > populated when we use the netty4-http component? To access things like the > query string we need to do it usin

Netty4-http

2016-08-03 Thread Vinny
Hello All, Am I correct i assuming that the normal Camel HTTP headers are not populated when we use the netty4-http component? To access things like the query string we need to do it using Netty tools like QueryStringDecoder on the FullHttpRequest object. Just wanted to make sure I didn't configur

Re: camel consume message from multiple jms endpoint based on condition

2016-08-03 Thread Claus Ibsen
Hi What JMS broker are you using? And are those 2 endpoints the same "queue" or are they two different queues / brokers etc. If its the same queue then the JMS broker / client typically has built-in automatic failover you can configure. For example ActiveMQ and Artemis has that. On Wed, Aug

camel consume message from multiple jms endpoint based on condition

2016-08-03 Thread Deepak kumar
i have a camel route which polls a jms component and this works fine for me. But we have another requirement here there should be 2 jms endpoints .if first endpoint is not up then camel should polls the 2nd endpoint.Can anyone suggest how to achieve this? thanks in advance.. -- View this messag

Cut file

2016-08-03 Thread Louisa
Hello everybody, I need your help. I use Talend ESB and I want to make java beans to cut file. For example, I have this flat file: 11886 1855 004309000 11886 1855 05737 11886 1856 057374001 11886 1856 057375000 In my example I want 2 files (messa

Re: Understanding Error Handling on steps

2016-08-03 Thread Carlos Rodriguez Fernandez
If I understand correctly, the retries on the entry points to fetch the message are defined by the entry point configurations, and when the Apache Camel documentation mentions "redelivery" is talking about the delivery of the messages that was already picked up by the entry point of the route defin

Camel Netty4 multiple client connections

2016-08-03 Thread gshepherd7
I have a requirement to be able to support 100K messages a minute from one Camel instance to another Camel instance on the same network. I'm receiving 9 different message types in my publisher routes and pushing them from my Publisher Camel instance to the Camel Consumer instance using the Camel N

Re: MockEndpoint header test seems wrong

2016-08-03 Thread James Green
Forget this - finally found a case where the header was being set in a somewhat contrived manner. On 2 August 2016 at 18:02, James Green wrote: > Hi, > > In my test I have: > > mockEndpoint.allMessages().header("SomeKey").isInstanceOf(SomeClazz.class); > > Which should fail, as the route sets So