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:
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
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
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
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:
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
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 :
root
header1.../header1
header2.../header2
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
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
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
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
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
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 arnaudep...@gmail.com:
Hi jhm,
I agree, this kind of stuff can be very useful especially for huge file
(otherwise we can use
With the help of spring or blueprint, you can setup your CxfRsEndpoint just
like this
cxf:rsClient id=rsClientProxy
address=http://localhost:${CXFTestSupport.port1}/CxfRsProducerTest/;
serviceClass=org.apache.camel.component.cxf.jaxrs.testbean.CustomerService
cxf:headers
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
Hi
It appears the only way to throw exceptions in the spring DSL is to declare the
exception as a bean and use the throwException tag with the reference to the
bean. However doing so means you're limited to whatever message you declared
your bean with. e.g.
bean id=myException
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)
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 ?
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.
No you can only refer to the exception and define it as a bean
On Thu, Apr 24, 2014 at 3:58 PM, Minh Tran minh.t...@winning.com.au 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 throwException tag with the reference
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,
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:
Cat
NameCat1/Name
/Cat,
Dog
NameDog1/Name
/Dog
Now, I need to send the 'Cat' part of the message i.e.
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(
@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:
Cat
NameCat1/Name
/Cat,
Dog
NameDog1/Name
/Dog
Now, I need to send the 'Cat' part of the message i.e.
CatNameCat1/Name/Cat part to queue1 and the 'Dog' part of xml
i.e.
DogNameDog1/Name/Dog to a
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 mat...@yahoo.com wrote:
Hi,
I am using Camel 2.12.3.
I am using sftp to ftp files from folder
Hi Willem,
Removing the 'test' scope has fixed my problems.
On Thu, Apr 24, 2014 at 11:35 PM, Willem Jiang willem.ji...@gmail.comwrote:
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
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 elak...@gmail.com wrote:
@Claus
I think there is something strange with the encoding/decoding logic,
concretely speaking, what URISupport's
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
Yes..there is a comma...
The message that would be returned from a processor Call in the route would
be like this:
[Cat xmlns=http://www.openapplications.org/oagis/9;
xmlns:lw=http://www.org/oagis/9;
nameCat1/name
/Cat,
Dog xmlns=http://www.openapplications.org/oagis/9;
The interceptor must be in the same RouteBuilder.
On Fri, Apr 25, 2014 at 4:12 AM, shreyas shreyas.puro...@hotmail.com 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
Hi
You need to use handled(true) in your onException block.
On Wed, Apr 23, 2014 at 7:21 PM, ninadmnaik nni...@gmail.com 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
36 matches
Mail list logo