Re: Loop should continue after exception caught.

2016-09-23 Thread Claus Ibsen
What version of Camel do you use? And have you tried upgrading and use latest? On Fri, Sep 23, 2016 at 10:45 PM, ptatTransamerica wrote: > Hi, > > I am looking for the option to continue the loop after catching the > exception in the route. > e.g > > > ${body.size} >

Re: Can't understand what inOnly is doing

2016-09-23 Thread sim085
I am not sure I am following. For example the following page under "Flow of an exchange through a route" it says "The OUT message from each step is used as the IN message for the next step. If there is no OUT message then the IN message is used instead". Link:

weaveAddFirst doesn't work correctly with route level onException

2016-09-23 Thread Minh Tran
Hi I use the advice stuff quite extensively but never weaveAddFirst though. I do see the kind of exceptions you are seeing from time to time and it's probably a bug. I generally find the workaround is to use weaveById. I think it has a lot less trouble finding the node to weave at if you just

Re: Need input on accessing http servlet

2016-09-23 Thread David Parker
As a work-around, you might create a class that invokes a HTTPClient or other URL-friendly utility. Invoke that logic in your route to retrieve data and then process it. On Fri, Sep 23, 2016 at 3:08 AM, jpeschke wrote: > Hi, > You cannot use the Servlet component to connect

Designing many service routes

2016-09-23 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have more than 2 thousands web services(SOAP/REST) and want to move them to camel cxf. My question is about designing routes. Should I be designing at least one route for each service or I should try to find a way one generic route for all services. If both possible what are the pros and

Loop should continue after exception caught.

2016-09-23 Thread ptatTransamerica
Hi, I am looking for the option to continue the loop after catching the exception in the route. e.g ${body.size} .calling some service which can produce exception. java.lang.Exception after catching the exception, I need to continue the loop here. Any

Re: weaveAddFirst doesn't work correctly with route level onException

2016-09-23 Thread Brad Johnson
I don't using weaving in my tests so can't be of a whole lot of help. Personally I'd try separating the single weave and double into two separate test files and see if there's any difference. It isn't too surprising that it fails with multiples especially with exception handling given the

Re: Can't understand what inOnly is doing

2016-09-23 Thread DariusX
To clarify, your route flows from the initial consumer (jetty), to a remove step, then transform, then a "direct" route consisting of another transform, and then a log(). All through this sequence, you have an IN body going from step to step (sometimes being transformed, but still IN when it

Applying filtering on an HTTP pattern

2016-09-23 Thread medali_k
I am trying to build routes for restful services using JAX-RX and tomcat as a server. So I have bunch of from("cxfrs:/...")... routes. However, I need to apply a common logic that should apply to each HTTP URL under '/secure/' to apply authentication/authorization logic. I also have a common

Re: Camel in Action Book

2016-09-23 Thread Brad Johnson
Hear, hear! My one hope for the new book is that the emphasis is on using POJOs for most message processing in lieu of using Processors. I've found that once my clients understand how Camel can select a method for invocation on a bean for a route and how easy that makes unit testing for

Re: Swagger integration shows "no content" (Camel 2.16.3)

2016-09-23 Thread jpeschke
Hello, Well sometimes, the devil is in the detail. As I found out, Swagger worked from the beginning. The only problem was that while serving the Swagger docs under "http://://api-docs/" in Camel 2.14 (with the old Scala-based Swagger servlet) it seems that the swagger servlet puts it here:

Camel-Mail - Consume from IMAP with variable searchTerm.fromSentDate

2016-09-23 Thread Michael Täschner
Hi Camel-Riders, is there a possibility to consume mails with modifiable searchTerm.fromSentDate value? I am looking at a solution where the consumer must not depend on "unseen" flag, manages an internal dateTime variable to pick-up mail search from where it last stopped? There may be other

Re: Can't understand what inOnly is doing

2016-09-23 Thread DariusX
Conceptually, an "Out" message is a response, back to the caller. -- View this message in context: http://camel.465427.n5.nabble.com/Can-t-understand-what-inOnly-is-doing-tp5787961p5787966.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel in Action Book

2016-09-23 Thread jpeschke
Hello, I started learning Camel from scratch about two years ago and read "Camel as action" at the beginning. I can confirm that "Camel in Action" offers still a very good point to start. I knew nothing about Camel or EIPs in general and just bought the book to see if Camel could provide some nice

Can't understand what inOnly is doing

2016-09-23 Thread sim085
I must not be understanding the concept which is why I decided to ask the question before continue with my reading. The book I am reading says "When the pattern is InOnly, the exchange contains an IN message. For InOut, an OUT message also exists". I understood this as meaning that in an InOnly

Re: Need input on accessing http servlet

2016-09-23 Thread jpeschke
Hi, You cannot use the Servlet component to connect to a third party servlet on your server context. The "servlet:" endpoint is only to offer a servlet interface to your camel routes. See documentation at http://camel.apache.org/servlet.html: > You can consume only from endpoints generated by

Swagger integration shows "no content" (Camel 2.16.3)

2016-09-23 Thread jpeschke
Hi, I just migrated my application to Camel 2.16.3 (previously 2.14.3). After some adjustments, everyhing works finde except the Swagger Integration. Whenever I call the swagger URL, I get HTTP-Response 204 (No Content). I enabled both the CORS filter in the REST API AND the Swagger-Servlet...but

Re: Need help in processing comma seperated text file

2016-09-23 Thread raghavender.anth...@gmail.com
Am not sure whether I've understood your question correctly, am looking for an approach/solution that is efficient, quick with minimal code. Right now, I'm planning to do below steps: 1. Read the source file line by line 2. Process the data line by line and collect the data in several

Re: Need help in processing comma seperated text file

2016-09-23 Thread raghavender.anth...@gmail.com
Thanks Steve. I am sending you the source and target file formats as mentioned below. The source file can contain 100,000 - 10,00,000 records. *Source delimited text file:* [Runtime] Date=ASAP Time= AllowErrors=FALSE [Task.1] Server=Item Master Module=ItemPOSIdentity Operation=*addupdate*

Re: cxf-core 3.1.7 Validation issue with camel

2016-09-23 Thread Willem Jiang
You need to use the [1] instead of the generic camel endpoint to setup the schemaLocations for validation. http://camel.apache.org/cxf.html#CXF-ConfiguretheCXFendpointswithSpring  -- Willem Jiang Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter:

Re: Event notification before endpoint starting retrieving

2016-09-23 Thread Christian Damsgaard
Hi Claus, Yes - that would properly solve the problem with the delay in notification about the transfer. We have for historic reasons the localWorkDirectory set which make the streamDownload be ignored, but we will try to remove it. But is there a way to get notified about the endpoint polling

Need input on accessing http servlet

2016-09-23 Thread ibrahimis
Hi, I have created servlet which will return a JSON object. I am trying to connect the servlet using Camel and put it in a buffer. But my servlet didn't invoked at all and not throwing any error. I am currently in the beginning stage on using camel. Please help. I have used the following code.

Re: Event notification before endpoint starting retrieving

2016-09-23 Thread Claus Ibsen
You can try using the streamDownload option so the ftp file is not fully downloaded up-front. On Fri, Sep 23, 2016 at 11:30 AM, Christian Damsgaard wrote: > Is it possible to receive an event before an endpoint starts receiving the > body? > > The implementation

Event notification before endpoint starting retrieving

2016-09-23 Thread Christian Damsgaard
Is it possible to receive an event before an endpoint starts receiving the body? The implementation of org.apache.camel.spi.EventNotifier does not provide this information. The use case is that we are receiving 100 mb. file from a slow FTP server - it takes about 10 minutes - and we are not able

Re: Need help in processing comma seperated text file

2016-09-23 Thread Steve973
It might help to show us an example of the data that you are trying to transform. If the files are not too large, then simply using the file component and then invoking a CSV library (such as http://opencsv.sourceforge.net/) from within a processor should give you what you want. Depending on

Re: Convert Flat File to XML using a XSD Schema

2016-09-23 Thread Daniel P22
Thanks Vitalii and Ranx, is perfect. -- View this message in context: http://camel.465427.n5.nabble.com/Convert-Flat-File-to-XML-using-a-XSD-Schema-tp5787902p5787950.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: weaveAddFirst doesn't work correctly with route level onException

2016-09-23 Thread ncsibra
Can somebody confirm that am I doing something wrong or is this really a bug? -- View this message in context: http://camel.465427.n5.nabble.com/weaveAddFirst-doesn-t-work-correctly-with-route-level-onException-tp5787900p5787949.html Sent from the Camel - Users mailing list archive at

Camel event notifier query

2016-09-23 Thread mayur_bm
Hi, I have Osgi container where dynamically we inject camel context. My requirement is to tap camel exchanges which traverses across various routes in those camel contexts centrally!!! Assume if route has some issues with end points then those exchanges will be propagated with the issue details