[Bindy] Having trouble with the "required" field

2012-03-27 Thread Aida
Hi, I'm using bindy for parsing files, but I'm having problems with the "required" option (by default set to false). Camel version: 2.9.1 kind of file being processed: csv separator : \t number of classes (for map from file to object): only 1 My problem comes when I try to process a file wi

Re: Apache >> Camel >> Missing Headers

2012-03-27 Thread Claus Ibsen
On Tue, Mar 27, 2012 at 7:40 AM, megachucky wrote: > Unfortunately, the link to the Gliffy diagram (Flow of an exchange through a > route) is broken. Maybe someone can fix it? > Thanks, I am trying to fix this. > -- > View this message in context: > http://camel.465427.n5.nabble.com/Apache-Came

Re: [Bindy] Having trouble with the "required" field

2012-03-27 Thread Claus Ibsen
On Tue, Mar 27, 2012 at 9:58 AM, Aida wrote: > Hi, > > I'm using bindy for parsing files, but I'm having problems with the > "required" option (by default set to false). > > Camel version: 2.9.1 > kind of file being processed: csv > separator : \t > number of classes (for map from file to object):

Re: How to handle attachments in JMS message

2012-03-27 Thread Stefan Burkard
Thanks for your answers! I consume the SOAP-mtom-messages with CXF endpoint and then marshal the message with JAXB (to work without CXF for further processing and queueing). The attachments are then embedded as base64 in the message body, I guess due to the Annotation @XmlMimeType("application/oct

Strange behavior of the servlet component

2012-03-27 Thread Knut Aksnes-NOR
I have a route collection packaged as a jar using 2.9.1 the routes are deployed on Geronimo 2.2.1 and consists of a couple of incoming servlets as well as some seda routes. The routes invoke other seda routes, some ActiveMQ routes as well as one external http server using the http component. Eve

RE: Strange behavior of the servlet component

2012-03-27 Thread Knut Aksnes-NOR
One extra detail. I am using Geronimo with Jetty. -Original Message- From: Knut Aksnes-NOR [mailto:knut.aks...@jeppesen.com] Sent: 27. mars 2012 10:54 To: users@camel.apache.org Subject: Strange behavior of the servlet component I have a route collection packaged as a jar using 2.9.1 th

Re: [Bindy] Having trouble with the "required" field

2012-03-27 Thread Magnus Palmér
I had a project using the Bindy for Camel 2.7.3 that has this code (with 87 fields about the same as the first one): @CsvRecord(separator = "\t", crlf = "UNIX", generateHeaderColumns = false) > public class CsvProduct { > > @DataField(pos = 1, required = false) > private String EAN; I updated my

Re: Only one endpoint can follow to the split bean ?

2012-03-27 Thread Reuben Garrett
wow, I'd like to move this discussion to the user list since you have usage concerns. my only suggestion is to use log [1] or tracer [2] to help diagnose that routing details (e.g. headers) match their expected values. the commiters will be able to give further insight. [1]: http://camel.apache

http parameters propagation

2012-03-27 Thread pchakinala
Hi , Please suggest me how to propagate http query parameters using camel-jetty component. My usecase flow is below. HTTP client (with query parameters) ---> camel-jetty provider > camel-jetty (consumer with query parameters received from HTTP client) > External HTTP Service Regards,

Re: http parameters propagation

2012-03-27 Thread Ashwin Karpe
Hi, Please check out the "Configuring HTTP Properties" and "Customizing HTTPBinding" sections for the Camel Jetty component available at the following link http://camel.apache.org/jetty.html http://camel.apache.org/jetty.html Cheers, Ashwin... - ---

Have available data in several points of the route?

2012-03-27 Thread m.jimen.blazquez
Hi, I am evaluating if I can use CAMEL to implement workflows. I have read in this same forum I can although CAMEL is not designed for it. Anyway, I have been studying the different patters but the main problem I find is that I don't know how to have data available in different points of the rout

Re: Have available data in several points of the route?

2012-03-27 Thread Stefan Burkard
Hi I think you are looking for the Camel Exchange. The Exchange is a container that contains the messages (in-message and depending on the MEP also out-message) as well as properties. You can put and get any data into/from the properties of the exchange. Regards Stefan On Tue, Mar 27, 2012 at 1

Re: Exceeding stated content length of 66

2012-03-27 Thread Claus Ibsen
Hi Maybe the Content-Length header is a leftover from a previous http related invocation. Try removing it before hitting that CXF endpoint Otherwise Content-Length and the message body should be same length Content-Length=[66] That would mean the payload below should be 66 bytes. Payload:

Re: Exceeding stated content length of 66

2012-03-27 Thread Stefan Burkard
Hi A quick google search for your exception and weblogic brings up a lot of results, for example: http://stackoverflow.com/questions/1664996/weblogic-exceeded-stated-content-length-error Regards Stefan On Tue, Mar 27, 2012 at 17:16, dvsridhar wrote: > Not sure which forum i should post Camel or

Re: Exceeding stated content length of 66

2012-03-27 Thread Sergey Beryozkin
Somewhere along the line Apache HTTPClient gets involved: User-Agent=[Jakarta Commons-HttpClient/3.1]. I wonder if the content gets corrupted along the way somehow (few extra spaces/lines added) and causes the mismatch of the actual number of bytes and the Content-Length value Sergey On 27

Re: Exceeding stated content length of 66

2012-03-27 Thread dvsridhar
Awesome tip. It worked like a charm. I am still not sure, why weblogic 10.3.5 has that problem. I tried in Jboss, tomcat and both were fine. We want to have a neutral solution that is portable across Jboss and Weblogic. Once again thank you very much for the help. Thanks, Sridhar -- View this mes

Re: Have available data in several points of the route?

2012-03-27 Thread m.jimen.blazquez
Hi, Actually the exchange does not fit because I have to interact with services which doesn't understand CAMEL so the body in exchange will always be the returned object of the invoked method, won't it? best regards -- View this message in context: http://camel.465427.n5.nabble.com/Have-availa

Re: Exceeding stated content length of 66

2012-03-27 Thread dvsridhar
Sergey, Thanks for the reply. We are not doing anything with the request, just forwarding the request from camel consumer to a camel producer (remote restful service). I am not sure where this can get corrupted, unless we have a bug in the cxf code. I tried debugging around, couldn't found where t

Re: RESTful web service support from Camel

2012-03-27 Thread Reuben Garrett
CXF is probably very relevant to your scenario, as Sergey indicates (although i haven't used it yet). for the general case of "dynamic" endpoints/URIs, check out these resources: http://camel.apache.org/dynamic-router.html http://camel.apache.org/recipient-list.html http://camel.apache.org/how-do

Re: CXFRS and Processing

2012-03-27 Thread Sergey Beryozkin
I opened https://issues.apache.org/jira/browse/CAMEL-5123 to keep the track of this issue. I'll have a look a bit later unless Willem already knows the answer :-). Please also experiment with direct CXF jaxrs:endpoints in conjunction with the Camel transport Cheers, Sergey On 26/03/12 19:

Enrichment and Type Conversion

2012-03-27 Thread GPRSLyons
Gents- As always, thanks for the help. In my route, it is very simple for me to convert the payload to JSON... .unmarshal().gzip() .unmarshal().json(JsonLibrary.Jackson, MyClass.class) However, I would like to enrich my content from multiple sources, such as... .loop(SOURCES.length) .enrich("s

Re: CXFRS and Processing

2012-03-27 Thread GPRSLyons
Thanks for the response! Unfortunately, I am new with Camel and do not understand what you mean when you say "Please also experiment with /direct CXF jaxrs:endpoints/ in conjunction with the Camel transport". I would like to provide as much help / additional information as possible... By /direct

Java DSL and choice-when error with marshal and jaxb?

2012-03-27 Thread Magnus Palmér
Hmm, can this be a bug perhaps? This works: > .marshal(new JaxbDataFormat("org.example.mypackage")) > .when(header("foo").isEqualTo("bar")) > This doesn't: (Compilation error: The method when(Predicate) is undefined for the type ProcessorDefinition) > .marshal().jaxb("org.example.mypackage") >

Re: Have available data in several points of the route?

2012-03-27 Thread Bilgin Ibryam
I think then you can use something like claim-check pattern http://camel.apache.org/claim-check.html to store and access your data from anywhere in the route. Bilgin On 27 March 2012 16:39, m.jimen.blazquez wrote: > Hi, > > Actually the exchange does not fit because I have to interact with > s

Polling Consumer invoking multiple requests.

2012-03-27 Thread segev
We have a requirement to implement a polling consumer that periodically checks for messages (via Web Service or RMI requests). In this case the polling consumer expects to invoke multiple requests until all messages have been read without waiting for the next polling (there is a ‘No More Messages’

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-27 Thread garrydias
I found the problem. It was caused by /garryHeader /header. It was null. In fact, I was sending my body using ProducerTemplate.sendBody(Endpoint endpoint, Object body). So /garryHeader /does not exist. I had to debug org.apache.camel.processor.Throttler to discover that [1]. I don´t think the

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-27 Thread garrydias
One more! There´s no need to separate the routes due to a throttle nested in a split. So my first spring xml works. Thanx too much regards -- View this message in context: http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-problem-tp5586898p5599379.html Sent from the Camel -

Re: Throttling: maximumRequestsPerPeriod problem

2012-03-27 Thread Christian Müller
Thanks Garry for pointing this out and also sharing your solution. I opened a JIRA for it. Do you consider providing a patch for it? In this case, the pages [2] and [3] could be helpful for you. [1] https://issues.apache.org/jira/browse/CAMEL-5126 [2] http://camel.apache.org/contributing.html [3]

Re: Have available data in several points of the route?

2012-03-27 Thread Christian Müller
Yes, but - you can store your data as Exchange properties - you can use the enrich pattern [1] to enrich your message or message headers and use an AggregationStrategy to merge the old and the new Exchange together. claim-check is the prefered solution if you deal with big data. [1] http://camel.

Re: Enrichment and Type Conversion

2012-03-27 Thread Christian Müller
What we do in this case is: enrich("direct:step1", firstAggregationStrategy) enrich("direct:step2", secondAggregationStrategy) ... from("direct:step1") .convertBodyTo(Foo.class) .to("cxf:..."); from("direct:step2") .convertBodyTo(Bar.class) .to("cxf:..."); We implemented custom type con

Re: Polling Consumer invoking multiple requests.

2012-03-27 Thread Christian Müller
Did you already had a look at [1]? IMO this is the way you should go. I'm working on an example for my colleges, which have similar needs: - The route should started/triggered by an external scheduler (Tivoli in our case). We will use camel-netty, camel-mina or camel-http4 for this. - The route sh

Re: CXFRS and Processing

2012-03-27 Thread Willem Jiang
You need to set the response back in the emptyProcessor. As camel cxfrs consumer will try to find the response from the out message. On 3/27/12 2:27 AM, GPRSLyons wrote: Gents- Thanks much for the help so far. I am trying to do some processing on my CXFRS route before it goes back to the brow

Re: FTP Polling errors

2012-03-27 Thread Claus Ibsen
Hi Maybe try setting stepwise=false. See more details at http://camel.apache.org/ftp2 And it seems your FTP server dont like changing directory to the user root directory (eg /). Also mind if the server is unix or windows. There is a separator option to explicit configure that. On Wed, Mar 28,

Re: Have available data in several points of the route?

2012-03-27 Thread Stefan Burkard
Actually there is no requirement that the called services know camel. You can for example save the original message body to an exchange property then convert the body to the needed "request object" that is the parameter for the called service. Then the service response replaces the message body ag

Re: FTP Polling errors

2012-03-27 Thread Sam (Stephen Samuel)
Thanks for the tips. It's odd that it works 9 times out of 10 but then will give me that exception and no further files (for that consumer) will be consumed. The other 4 consumers on the same FTP endpoint (each scan for different types of files) continue to work. On Wed, Mar 28, 2012 at 07:30, Cla

Printing out bean validation exception message causes, well, exception

2012-03-27 Thread Borut Bolčina
Hello, I am using bean-validator component to validate the content of some fields: @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { DataFormat jaxbDataFormat = new JaxbDataFormat("com.mycomp