when to call start() and stop() on ProducerTemplate?

2016-08-30 Thread atluris
Hi, Based on below article, we are creating single producer template instance and using it as and when needed to execute the camel route explicitly. http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html We are calling start() during server startup and stop() duri

Re: ERROR No message body reader has been found for class, ContentType: application/json' in CXF JAXRS - 2.17.3

2016-08-30 Thread imranrazakhan
@sergery/ranx, addition of jettision didn't resolve problem. @cacert, Thanks, Your suggestion worked perfectly. -- View this message in context: http://camel.465427.n5.nabble.com/ERROR-No-message-body-reader-has-been-found-for-class-ContentType-application-json-in-CXF-JAXRS-2-173-tp57869

First time create SFTP File and then Append to same in loop.

2016-08-30 Thread Goyal, Arpit
Hi Colleagues, We have the following route: from("xxx:inbound").process(new MyProcessor()).choice(when(header("record_count").isGreaterThan(0)).to("sftp://xyx[?options]";).to("xxx:inbound").otherwise(new MyEndProcessor()) It is a simple loop condition using choice where one branch process data

Re: Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-30 Thread Brad Johnson
Then the ignoreUnidentifiedRecords probably wouldn't work for you. There's another one like it but I don't recall it right now. I'm more used to doing this in Blueprint so it takes me awhile to make the change from one to the other. What stack trace are you seeing with this? Brad On Tue, Aug 30

Re: Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-30 Thread Ranx
Why are you trying to handle the error? There are a couple of settings with BeanIO that permit you to ignore exceptions or to skip unknown record types. That may not be what you want though if you are sending the bad things to a DLQ. Brad -- View this message in context: http://camel.465427.

Re: Exception when suspending splitter

2016-08-30 Thread Brad Johnson
I suspect it's the streaming that's creating the problem but I can't be sure without testing. If you test it by removing the streaming does the route suspend/stop successfully? The reason I suggested using the ThrottlingRoutePolicy is you should be able to set that maxInflightExchanges to 0 when

Problem with objects not being released from memory.

2016-08-30 Thread litian
Hi All, I have a problem with a program where it appears that objects are never released from memory. We are using Apache Camel and the HL7 component to read in HL7 messages. Everything is working, however after a few thousand messages, the program slows down and eventually stops working. We use J

Camel BeanIODataFormat Configure ErrorHandler for BeanIO Reader

2016-08-30 Thread spurcell
I am working on a camel project in which we use the BeanIODataFormat to unmarshall a CSV file. I want to add a custom Error Handler class (implements BeanReaderErrorHandler) but cannot figure out how this can be accomplished. I have a camel route: from(INBOUND_PROCESSING_ROUTE) .r

Re: Exception when suspending splitter

2016-08-30 Thread saw
Ranx thank you for your suggestions but what i was looking for was some insight into the original problem, not a workaround. I would really just like to know if the splitter supports suspend/resume and if i'm doing something wrong in the route configuration that are causing the exceptions. -- V

Re: sql vs jdbc component after Camel 2.16

2016-08-30 Thread Rajith Muditha Attapattu
Thanks Matt, in some environments thats a significant advantage. On Tue, Aug 30, 2016 at 10:08 AM, Matt Sicker wrote: > The jdbc component doesn't require Spring as a dependency. That's the main > advantage it has that I know of. > > On 30 August 2016 at 08:15, Rajith Muditha Attapattu > wrote:

Re: camel-cdi projects as fat jar

2016-08-30 Thread Brad Johnson
Interesting that is failing on not finding javax.servlet.http.HttpServletRequest as you aren't using in your route. On Tue, Aug 30, 2016 at 3:29 AM, a746076drdrb wrote: > Used maven-shade-plugin version 1.7.1 and weld 2.2.15.Final. Now tried > 2.3.5.Final with > > Exception in thread "main" org.

Re: Route elements - Loop

2016-08-30 Thread Brad Johnson
from("file://foo.txt").split().tokenize("\n").streaming().to(...) I'll commonly send them to a SEDA queue for processing. Then you can specify a thread pool on the SEDA queue and consume from it to insert into the database. Brad On Tue, Aug 30, 2016 at 8:27 AM, raercules wrote: > Thanks for th

Re: ERROR No message body reader has been found for class, ContentType: application/json' in CXF JAXRS - 2.17.3

2016-08-30 Thread Brad Johnson
What Sergey suggested is what I've used in the past. I don't recall if that's the version with my BOM but you're using the latest version of Camel org.codehaus.jettison jettison 1.3.8 On Tue, Aug 30, 2016 at 2:51 AM, Sergey Beryozkin wrote: > If so - do you have a jettison depe

Re: Exception when suspending splitter

2016-08-30 Thread Brad Johnson
There are a couple of items I might suggest. One is to use a ThrottlingRoutePolicy with your throttler. That can permit to write your own control so you can turn it up or down when you need to. http://camel.apache.org/route-throttling-example.html Notice how it has a percent of maximum and resu

ApacheCon Seville CFP closes September 9th

2016-08-30 Thread Rich Bowen
It's traditional. We wait for the last minute to get our talk proposals in for conferences. Well, the last minute has arrived. The CFP for ApacheCon Seville closes on September 9th, which is less than 2 weeks away. It's time to get your talks in, so that we can make this the best ApacheCon yet. I

Re: Binary Data Structure Marshalling and Unmarshalling

2016-08-30 Thread Quinn Stevenson
If the data formats you’ve listed don’t work, I’d guess you’ll need to write your own DataFormat (http://camel.apache.org/custom-dataformat.html ) > On Aug 17, 2016, at 5:41 AM, Pratik Thacker wrote: > > We need to decode and encode binary data s

Re: Triggering choice-when block when no Exchanges make it through

2016-08-30 Thread Quinn Stevenson
If any files are found, the processor and choice condition will be executed, so could the fileProcessor be messing with the headers? Also, believe with this configuration that Camel will only set the CamelBatchComplete header to true on the last file it found during the last poll - is that what

Re: sql vs jdbc component after Camel 2.16

2016-08-30 Thread Matt Sicker
The jdbc component doesn't require Spring as a dependency. That's the main advantage it has that I know of. On 30 August 2016 at 08:15, Rajith Muditha Attapattu wrote: > The difference between the two is that with jdbc the query is in the > message body vs the as an endpoint property in sql. > >

Re: Route elements - Loop

2016-08-30 Thread raercules
Thanks for the tip. Unfortunately, the one area I was interested in "Data" is empty. -- View this message in context: http://camel.465427.n5.nabble.com/Route-elements-Loop-tp5786975p5786992.html Sent from the Camel - Users mailing list archive at Nabble.com.

sql vs jdbc component after Camel 2.16

2016-08-30 Thread Rajith Muditha Attapattu
The difference between the two is that with jdbc the query is in the message body vs the as an endpoint property in sql. But it seems from Camel 2.16 onwards, the sql component can do the same. >From the looks of it, both could do what I want. I'm just trying to figure out the best component to u

Re: camel-cdi projects as fat jar

2016-08-30 Thread a746076drdrb
Used maven-shade-plugin version 1.7.1 import javax.inject.Inject; import org.apache.camel.Endpoint; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.cdi.Uri; public class MyRoutes extends RouteBuilder { @Inject @Uri("timer:foo?period=5000") private Endpoint inpu

Re: camel-cdi projects as fat jar

2016-08-30 Thread a746076drdrb
Used maven-shade-plugin version 1.7.1 and weld 2.2.15.Final. Now tried 2.3.5.Final with Exception in thread "main" org.jboss.weld.exceptions.DeploymentException: javax/servlet/http/HttpServletRequest at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExecutorSe

XML Security - Is it possible to change transform algorithm on KeyInfo-object and SignedProperties?

2016-08-30 Thread salkin
*I'm trying to generate an XML-signature using Apache Camel Xml-Security component. My RouteBuilder and configuration looks like this: * / private void createRouteBuilders() throws Exception { /** * Sign XML with enveloping signature * * JndiRegistry is used to bind signature

Re: ERROR No message body reader has been found for class, ContentType: application/json' in CXF JAXRS - 2.17.3

2016-08-30 Thread Sergey Beryozkin
If so - do you have a jettison dependency on the classpath ? Sergey On 30/08/16 05:23, imranrazakhan wrote: HI, Yes it has @XmlRootElement annotation. Regards, -- View this message in context: http://camel.465427.n5.nabble.com/ERROR-No-message-body-reader-has-been-found-for-class-ContentT

Re: http 415 error in cxf rest service

2016-08-30 Thread Sergey Beryozkin
Hi Brad Thanks, FYI explicitly configuring CXF JSONProvider with a property unmarshalAsJaxbElement may fix it or adding Jackson provider (while excluding a jettison dependency) should work... Cheers, Sergey On 30/08/16 03:01, Ranx wrote: I assume you have a JSONProvider configured? That usu

Re: Route elements - Loop

2016-08-30 Thread Allan C.
The people at Fuse and Camel has made available tons of materials and samples for reference. Try this https://github.com/FuseByExample/camel-persistence-part2 Regards, Allan C. On Tue, Aug 30, 2016 at 5:11 AM, Robert Lario wrote: > I am new to camel. > > > I have a file that needs to be process

Route elements - Loop

2016-08-30 Thread Robert Lario
I am new to camel. I have a file that needs to be processed each day. It contains a list of members and it is in CSV (rob,12.30,yes,1). I want to iterate over each row in the file and insert the information into a sql DB. I am looking at using "unmarshal" and the "JDBC" in the route. What

http 415 error in cxf rest service

2016-08-30 Thread cacert
I am trying to build some rest and soap services using camel cxf-rs module. Soap part is fine, in rest part i have one GET and one POST methods with following signature. GET method working fine but POST method(which expects a customer json object ) get HTTP status of 415 with error "No message body

Missing part in JPA component documentation

2016-08-30 Thread Alberto
Hello, I'm trying to set up a JPA idempotent repository. Some details are missing in the documention, where appears an error: Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20 instead of JpaTemplate configuration. Best regards Alberto