Hello,
what is the proper way to send file from folder to http endpoint?
from("file:src/data?noop=true")
.setHeader(Exchange.HTTP_METHOD, constant("POST"))
.to("http://example.com/upload";);
I couldn't find any example for it
--
View this message in context:
http://camel.465427.n5.n
Hi ,
Currently I am using cxf endpoint to listen to soap requests. Actually I
want to use http endpoint only to listen to soap requests. I need to provide
different services on only 1 URL. So I want soap method name to be populated
in camel headers, based on which I can call different different se
Hi,
I have a camel route which makes a GET request to a rest service hosted on
another server. I need to set a header for invoking the rest service. I am
using CxfRsEndpoint in camel for it.
I think the headers are set in the JAXRSClientFactoryBean. But I am not able
to set the header there. I am
Hi Camel Experts,
I am creating a custom Event Notifier by extending the EventNotifierSupport
class. I am interested in Exchange related events for auditing purpose.
While processing the Exchange Object i found out that TracedRouteNodes
object is not containing any value. This is how I am accessin
Hi,
cool stuff, I will patch it into my camel version.
Thx!
kind regards,
Christoph
Aki Yoshida-3 wrote
> as it seems the corresponding source files have not been linked to the
> jira ticket,
>
> you can find examples/test cases at:
>
> https://git-wip-us.apache.org/repos/asf?p=camel.git;a=t
Hi Willem.
I would like to delete files whose modification date was more than one
month.
Apache Camel 2.13.0.
FileConsumer skip path '.camel'
How to make FileConsumer read files in these directories?
Parameter "noop = true" does not affect.
Parameter "move = other" are not affected.
--
I see there are some changes between 2.11.0 and master regarding the
TokenXML* classes.
In the master version there is a "new" class TokenXMLExpressionIterator
where you did your changes, in 2.11.0 which i use there is only the
TokenXMLPairExpressionIterator.
Maybe you can be so kind and help me p
Hi jhm,
I agree, this kind of stuff can be very useful especially for huge file
(otherwise we can use xslt and split combinaition).
The problem here is how to keep the configuration of the tokenizer simple.
For example, we can have :
Input :
...
...
...
...
Hi,
I want to get Camel log info to a rolling file but cannot get it working in
Eclipse. I have all the right Maven dependencies and a log4j.properties
file in src/main/resources. I see the following appear at the console when
I run my Camel application.
SLF4J: Failed to load class "org.slf4j.imp
Here's how the rote looks like
from("direct:runlegacyrules")
.routeId("executeLegacyRules")
.setProperty(SupplyItemRoutesConstants.ORIGINAL_MESSAGE, body())
.setHeader(Exchange.HTTP_METHOD, constant(HttpMethods.POST))
Hi
You get this error because there is no type converter in Camel to
convert from that JSONtype your return in that bean to a String.
You need to add such a converter yourself, and convert to string from
a bean or something.
http://camel.apache.org/type-converter.html
On Thu, Apr 24, 2014 at 2:5
Hi,
I would like to expose optaplanner as a REST service and after some research
Camel seems the best option.
Sadly I'm having trouble setting it up as I have no experience with Camel.
Is there a camel-optaplanner example available?
If not, what example would come closest?
--
View this message
regarding the integration to 2.11.x, I think the code using the
current regex approach is available from 2.11.1, it should be possible
to get the patch integrated into your 2.11 copy.
if your copy was derived from 2.11.0, you have to get a bunch of classes copied.
I'll be integrating this patch do
It looks like the test scope dependency of slf4j-log4j12 doesn’t work there.
Can you double check your eclipse class path to see if the slf4j-log4j12 jar is
there?
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chi
I think it could be more easy to write a shell to clean up file than use camel
to do that job.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On April 24, 2014 at
we can't have any footers because that will force the tokenizer to
parse the entire document before start splitting the tokens.
2014-04-24 14:32 GMT+02:00 arnaudeprez :
> Hi jhm,
>
> I agree, this kind of stuff can be very useful especially for huge file
> (otherwise we can use xslt and split com
With the help of spring or blueprint, you can setup your CxfRsEndpoint just
like this
http://localhost:${CXFTestSupport.port1}/CxfRsProducerTest/";
serviceClass="org.apache.camel.component.cxf.jaxrs.testbean.CustomerService">
from(“direct:start”).to(“cxfrs://b
If you want to know the soap invocation name, you need to use camel-cxf POJO
data formate.
In this way, camel cxf can help you find out the operation name which the SOAP
request can be mapped.
I don’t this camel-http (or camel-servlet) component can do that job for you.
--
Willem Jiang
Red H
Hi
It appears the only way to throw exceptions in the spring DSL is to declare the
exception as a bean and use the tag with the reference to the
bean. However doing so means you're limited to whatever message you declared
your bean with. e.g.
something bad happened
So is it possib
I don't know what you mean by the soap method name. the soap action
header should be in the camel headers.
the operation name (i.e., the operations defined in the wsdl) is not
available, unless you use an endpoint that has the operation meta info
(e.g., a wsdl or a generated jaxws service class) th
Hello
my route configuration contains a file component as an endpoint (producer).
My requirement is, that after file creation there should be an additional
database insert, which should only be done if file creation was successfull.
How can I achieve this without using a Transactionmanager ?
Man
Hi Christoph,
I verified that patch is easily integrable even down to 2.11.x but as
I mentioned, not to 2.11.0.
if you want to stay with your copy of 2.11.0, you need to get the
commit history of TokenXMLExpressionIterator and merge all those
commits on a few classes to your 2.11.0 copy.
Alternati
No you can only refer to the exception and define it as a
On Thu, Apr 24, 2014 at 3:58 PM, Minh Tran wrote:
> Hi
>
> It appears the only way to throw exceptions in the spring DSL is to declare
> the exception as a bean and use the tag with the reference
> to the bean. However doing so means y
Hi
There is the component documentation at
http://camel.apache.org/optaplanner.html
And a good idea can be to check the unit tests of the component for
some ideas how to do it
https://github.com/apache/camel/tree/master/components/camel-optaplanner/src/test
On Thu, Apr 24, 2014 at 3:17 PM, Kenn
This is something which does not happen always. It happens intermittently.
--
View this message in context:
http://camel.465427.n5.nabble.com/Failing-to-load-converters-tp5750509p5750561.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Iam trying to write a camel route which would send different elements of a
list to different queues.
The message body would be a list with 2 xml's. For example:
Cat1
,
Dog1
Now, I need to send the 'Cat' part of the message i.e.
Cat1 part to queue1 and the 'Dog' part of
Hi,
I am using Camel 2.12.3.
I am using sftp to ftp files from folder
/tmp/segment/service/ftpOut
from(file:/tmp/segment/service/ftpOut?move=/tmp/segment/service/ftpDone/${file:name}&recursive=true)
.to(
sftp://f...@remote.com/test?preferredAuthentications=publickey&priv
@Claus
I think there is something strange with the encoding/decoding logic,
concretely speaking, what URISupport's parseQuery does.
what I find it strange is that the query string passed from URI to the
EndpointConfiguration is already decoded, as URI decodes it.
So decoding it again when setting
> The message body would be a list with 2 xml's. For example:
>
>
> Cat1
> ,
>
> Dog1
>
>
> Now, I need to send the 'Cat' part of the message i.e.
> Cat1 part to queue1 and the 'Dog' part of xml
> i.e.
> Dog1 to a different queue?
>
> This is the route that I have, but
Setting the parameter serverAliveInterval to 60, say, keeps the connection
alive and get rides of the timout exception.
Shing
On Thursday, 24 April 2014, 18:46, Shing Hing Man wrote:
Hi,
I am using Camel 2.12.3.
I am using sftp to ftp files from folder
/tmp/segment/se
Hi Willem,
Removing the 'test' scope has fixed my problems.
On Thu, Apr 24, 2014 at 11:35 PM, Willem Jiang wrote:
> It looks like the test scope dependency of slf4j-log4j12 doesn’t work
> there.
> Can you double check your eclipse class path to see if the slf4j-log4j12
> jar is there?
>
> --
>
Thanks,
RAW does solve my problem, but it does seem strange that its necessary. A
trap for new players.
On Fri, Apr 25, 2014 at 3:51 AM, Aki Yoshida wrote:
> @Claus
>
> I think there is something strange with the encoding/decoding logic,
> concretely speaking, what URISupport's parseQuery does.
Hello,
I already post my problem at
https://community.jboss.org/message/870242?et=watches.email.thread
Here is a summary:
I try to use the following groovy script in my camel route (deployed in
karaf 3.0.1, jdk 1.7, ubuntu 13,10) which works fine with former camel
versions
also with version 2.1
Yes..there is a comma...
The message that would be returned from a processor Call in the route would
be like this:
[http://www.openapplications.org/oagis/9";
xmlns:lw="http://www.org/oagis/9";>
Cat1
,
http://www.openapplications.org/oagis/9";
xmlns:lw="http://www.org/oagis/9";>
Dog1
]
-
The interceptor must be in the same RouteBuilder.
On Fri, Apr 25, 2014 at 4:12 AM, shreyas wrote:
> Hello,
>
> I have modified the camel console example to use interceptor. The interceptor
> is not working when I put the code that uses interceptSendToEndpoint in
> InterceptorRoute.configure met
Hi
You need to use handled(true) in your onException block.
On Wed, Apr 23, 2014 at 7:21 PM, ninadmnaik wrote:
> Hello,
>
> We are using "consumer.bridgeErrorHandler=true" in our route, so that if
> there's an exception during picking up of files, the Camel Error Handler can
> deal with it.
>
>
Hello All,
I used following route in XML DSL.
The requirement is to read file content , which is a line of string
delimited by '~', depending on specific pattern of a token I need to copy
the file to respective folder with full content. It copies the file but the
content is found only that token
Hi Jayanta,
As you split your file using the tilde separator before to call the content
base router EIP pattern (choice/when), only each token resulting from the
split will be saved under the destination file. Instead of splitting the
content of your file, you should just use the CBR with the expr
Hi,
I did check out the unit tests and got a pretty good start.
Yet I'm having some issues.
When I add a termination to the solverConfig I get an error because of a
missing dependency?
Exception in thread "main" org.apache.camel.FailedToCreateRouteException:
Failed to create route route1 at: >>>
> Yes..there is a comma...
>
> The message that would be returned from a processor Call in the route
> would be like this:
> [http://www.openapplications.org/oagis/9";
> xmlns:lw="http://www.org/oagis/9";>
> Cat1
> ,
> http://www.openapplications.org/oagis/9";
> xmlns:lw="http://www.org/oagis/
40 matches
Mail list logo