Re: Camel logs whole message body in case of org.apache.camel.CamelExchangeException "Cannot write body:"

2016-06-09 Thread Claus Ibsen
On Thu, Jun 9, 2016 at 10:00 PM, rvdlinden wrote: > Thanks for your reply. When i look into the source code of the > org.apache.camel.component.mina2.Mina2Helper, from which this > CamelExchangeException originates, i see that writeBody() includes the body > to the Exception's message String. Mayb

Re: Camel logs whole message body in case of org.apache.camel.CamelExchangeException "Cannot write body:"

2016-06-09 Thread rvdlinden
Thanks for your reply. When i look into the source code of the org.apache.camel.component.mina2.Mina2Helper, from which this CamelExchangeException originates, i see that writeBody() includes the body to the Exception's message String. Maybe i'm missing something, but I don't see how a setting on t

Re: ZipAggregationStrategy with persistent store

2016-06-09 Thread tmy...@wellsfargo.com
The default store for in-flight messages is in memory. I am thinking that a file system based store would protect against message loss when the route shuts down(unexpectedly or scheduled). you are correct that the file system needs to be resilient as well (SAN in this case) -- View this messag

Loading a pdf and xml metadata into a DMS

2016-06-09 Thread miggy4340
Hello, I'm a newbie and I would like some advise or example on how to do this. A scanner software save a pdf and a xml file in a directory. I need to read the xml, get some properties, "metadata" from it, then load the corresponding pdf into a document database using a web services (or a java ap

Re: HELP Camel Splitter Question - thanks in advance

2016-06-09 Thread souciance
Try converting the body to string after the streaming part. Den 10 juni 2016 12:51 fm skrev "Mills, Gary (GE Digital) [via Camel]" < ml-node+s465427n5783810...@n5.nabble.com>: > Hello, > > Can you tell me why this isn't working and it's real strange. > If I use the ${body} * I cannot use tokenize

HELP Camel Splitter Question - thanks in advance

2016-06-09 Thread Mills, Gary (GE Digital)
Hello, Can you tell me why this isn't working and it's real strange. If I use the ${body} * I cannot use tokenize with it ( I don't know if they work together or not ), it throws a schema impl exception. But it produces a different result which is the same as the input file as if it is not split

Re: Rest to Stax not working

2016-06-09 Thread Doug Douglass
I suspect the problem is that the body of the message is consumed before it reaches your stax processor. Specifically, without stream caching, the following will consume the body if it is any form of InputStream: .log("Content of the body in the main route: ${body}") See http://camel.apache.org/s

Re: Rest to Stax not working

2016-06-09 Thread souciance
Maybe I am seeing this wrong but how do these work? .to("direct:multicastdemo") from("direct:mainRoute") The to URI does not match the main from URI On Thu, Jun 9, 2016 at 10:18 AM, sonu123 [via Camel] < ml-node+s465427n5783748...@n5.nabble.com> wrote: > Hi, > I have a route which accepts a po

Re: Camel How to dequeue all messages accumulated every X minutes

2016-06-09 Thread souciance
Well, if your route is called every 5 minutes surely unless you specified otherwise the consumer should consume all the messages available on the queue and not just once. I am not a hardcore amq guy but there should be a way to tell it to consume until no more queues available. Usually its a header

Non-threadsafe objects in multi-casted exchanges - problem

2016-06-09 Thread clinton
I have a Spring DSL (camel 2.15) that does a multi-cast by executing a "loop", and firing off other routes using SEDA with the waitForTaskToComplete=never option. There is an Exchange "property" in the exchange that is a DOM object. I've found that in the sub-routes fired off by SEDA, the Exchange

Re: Camel How to dequeue all messages accumulated every X minutes

2016-06-09 Thread Guls
Quartz will only help me call dequeue route every 5 minutes. But how will quartz help me dequeue all the message, that are accumulated for past 5 minutes?. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp57837

Transactional RabbitMQ Consumer with Spring boot

2016-06-09 Thread vgaur
Hi, I am trying to create a camel route having rabbitmq consumer inside a transaction. I am using Spring boot and atomikos for tx management. Rabbit MQ queue already has x-dead-letter-exchange and routing key set up. How should I wrap my rabbitmq connection factory inside JTA tx manager ? I trie

Re: Printing message history during root debug

2016-06-09 Thread Claus Ibsen
No, but you can look at the exchange in the debugger, it has a property for message history with a list of all the nodes it has passed, then you can look in there. List list = exchange.getProperty(Exchange.MESSAGE_HISTORY, List.class); On Thu, Jun 9, 2016 at 2:20 PM, Kasim Sert (Ibtech-Software I

RE: Printing message history during root debug

2016-06-09 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi Claus, Is there a way to do this without changing the route, for instance in eclipse display window invoking some methods ? I tried to print with expression below but not working. org.apache.camel.builder.SimpleBuilder.simple("${messageHistory}").evaluate(org.apache.camel.builder.ExchangeBu

Attachment & multiple components

2016-06-09 Thread richardgroote
Hello, We have a question about attachments & HTTP & Spring. May be anyone knows a solution. We're using the below camel configuration. The direct:Test is called with XML message and some attachments. The XML is transformed and than send trough HTTP (the HTTP should not receive the attachments) A

xalan 2.7.2 working in IntelliJ IDE and not as .jar

2016-06-09 Thread ganga_camel
Hi, I am trying to transform xml using XSLT in Camel. The dependency I have is compile group: 'xalan', name: 'xalan', version: '2.7.2' I am trying to perform this step in xslt Am using this variable later in my xslt for further transformation When I run my camel routes t

Re: Printing message history during root debug

2016-06-09 Thread Claus Ibsen
If you are using Camel 2.17 you can use simple language to get it, and then log it easily .log("${messageHistory}") On Thu, Jun 9, 2016 at 10:55 AM, Kasim Sert (Ibtech-Software Infrastructure) wrote: > Hi, > > Is it possible to print Message history (which is printed in case of errors > like

Printing message history during root debug

2016-06-09 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Is it possible to print Message history (which is printed in case of errors like below) during a route debug without error conditions. I just want to learn how did I reach at that bean currently I am debugging. Is that possible ? Message History ---

Re: Trying to use the TarSplitter ...

2016-06-09 Thread Pontus Ullgren
No sorry none of the work-arounds I tested seemed to work. To be honest I've never used the TarSplitter myself in any project. My initial answer was simply based on the class hierarchy of TarElementInputStreamWrapper and expericne from the ZipFile component. Any way for reference could you post a

Rest to Stax not working

2016-06-09 Thread sonu123
Hi, I have a route which accepts a post request in plain/text format in the REST DSL, I want to forward it to another route where I intend to parse incoming body (XML) using stax component. My route look like this. restConfiguration() .component("servlet") .contextPath("Drools-Router/res

Re: Trying to use the TarSplitter ...

2016-06-09 Thread nicolasduminil
Waiting for the Jira, how could I work-around this issue ? Do you have any suggestion ? Many thanks in advance, Nicolas DUMINIL -- View this message in context: http://camel.465427.n5.nabble.com/Trying-to-use-the-TarSplitter-tp5783658p5783749.html Sent from the Camel - Users mailing list arch