Re: JMS message with Inout pattern

2016-09-09 Thread souciance
Are you sure the problem is not this? "Reply received for unknown correlationID [" It says so at the bottom of your stacktrace. Usually in a request/reply scenario the replyto should match but also the correlationId. On Fri, Sep 9, 2016 at 9:20 PM, Venu_s [via Camel] < ml-node+s465427n5787431..

Re: ProducerTemplate creates too much threads

2016-09-09 Thread Brad Johnson
OK, but that doesn't apply to an inject ProducerTemplate in a bean, only to ones created on the incoming thread. If you have something like. It is an *instance *variable. It is not created on the incoming thread but is only created at start up time. public class FooHandler { @EndpointInject(uri=

Re: Should i start/stop producer templates often

2016-09-09 Thread Brad Johnson
I'm not sure this is the problem but you don't need to create a singleton for the ProducerTemplate. You won't end up spinning one up for ever request. Is there a syncrhonized anywhere on the singleton that accesses the ProducerTemplate you are creating? Brad On Thu, Sep 8, 2016 at 10:49 PM, nite

Re: JMS message with Inout pattern

2016-09-09 Thread Quinn Stevenson
Sorry - you’re right. I was basing my answer on when I was writing the “consumer side” in pure Java. I had to send a response in that case since Spring/Camel wasn’t around to help with the details. I put together a quick test of those routes, and it passes on Camel 2.10.7 - so I’m not sure wh

Re: camel jms: setting specific MQ headers

2016-09-09 Thread sobha
Hi, We are struggling to put a JMS header for MessageID so that the downstream application can access it as MQMD header. The downstream application is expecting this. Pls help -- View this message in context: http://camel.465427.n5.nabble.com/camel-jms-setting-specific-MQ-headers-tp5722102p

Re: PollEnrich with file language

2016-09-09 Thread souciance
Nicely spotted, yeah works with constant and setting the header in an earlier step. So I guess with pollEnrich and simple, the move parameter is useful if you want the same filename but moved to a different folder. On Fri, Sep 9, 2016 at 4:30 PM, Quinn Stevenson [via Camel] < ml-node+s465427n57874

Re: PollEnrich with file language

2016-09-09 Thread Quinn Stevenson
I messed with the sample I posted earlier, and I think I see what going on now - pollEnrich().simple(….) is evaluating the expression - but the “?move=“ part doesn’t evaluate to anything meaningful at the point it’s evaluated. The “move=“ expressions need to be evaluated after the file has been

Re: PollEnrich with file language

2016-09-09 Thread souciance
I am using windows 7, camel 2.17.0. It works if I set the uri in a from() but in pollEnrich.simple() it doesn't seem. Maybe something really obvious that I am missing. On Fri, Sep 9, 2016 at 3:54 PM, Hans Orbaan [via Camel] < ml-node+s465427n5787421...@n5.nabble.com> wrote: > What os are you usi

Re: PollEnrich with file language

2016-09-09 Thread Hans Orbaan
What os are you using? Your test worked Fine on windows Op 9 sep. 2016 3:12 p.m. schreef souciance : The strange thing is, it does not matter what expression I use, anything after &move= turns into a folder. I think pollEnrich with dynamic endpoints has an issue with move. Basically this fails:

Re: PollEnrich with file language

2016-09-09 Thread souciance
The strange thing is, it does not matter what expression I use, anything after &move= turns into a folder. I think pollEnrich with dynamic endpoints has an issue with move. Basically this fails: pollEnrich().simple("file:" + folder + "?fileName=${header.File}&charset=iso-8859-1&move=archive/${fil

Re: PollEnrich with file language

2016-09-09 Thread souciance
I am on 2.17.0 and for the life of me cannot get it to work. I am using this: .pollEnrich().simple("file:" + location + "?fileName=${header.File}&charset=iso-8859-1&" + "move=../archive/${file:name.noext}-${date:now:MMddHHmm}.${file:ext}") All it does is create the archive fol

Re: Unmarshal fixed length Binary data

2016-09-09 Thread kaustubhkane
Hello, I will need to write my own DataFormat. I am trying to understand what all will be needed. Can I re-use anything within existing DataFormats functionality which Camel provide. Following are the main areas to be covered for the new DataFormat. 1) Marshal and unmarshal the binary data from te