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
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
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):
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
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
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
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
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
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,
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...
-
---
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
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
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:
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
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
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
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
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
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
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:
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
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
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")
>
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
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’
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
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 -
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]
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.
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
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
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
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,
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
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
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
36 matches
Mail list logo