My mistake, it is Apache Camel 2.12.2.
Got the issue resolved. FileBinder was waiting for a resource which never
got released.
--
View this message in context:
http://camel.465427.n5.nabble.com/File-processing-stops-on-bean-invocation-at-times-tp5749736p5749768.html
Sent from the Camel - Users
Guys,
I couldnt really understand how to solve this. But, from morning from
sitting with Camel JUnit test cases. Which made me realise, Camel is much
more interesting if we write more unit test cases for it :)
I am just loving the adviceWith :) Camel test case support is more genenious
than came
Hi
On Fri, Apr 4, 2014 at 4:38 AM, Lydie wrote:
> hello,
>
> Mt header has a herder called RouteConfiguration which contains xml ( as
> string):
>
>
>
> prints:
>
> * enabled***
>
>
> I am trying to use xpath totest the value of key
> I have tried this:
>
Here is an example that you can take a look, the jsonpath should work in
camel-2.13.0.
https://github.com/apache/camel/blob/master/components/camel-jsonpath/src/test/resources/org/apache/camel/jsonpath/SpringJsonPathCBTTest.xml
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: ht
It’s not a good way to create a new ProducerTemplate per request.
If you can reuse the ProducerTemplate you don’t need to worry about the threads
which are in the wait states, because that is how the thread pool works.
If you are don’t comfortable with that, you can pass an executor which is
mana
This is caused by modifying the SAML Assertion token with pretty-print and
saved. Once get pass this exception, I am now getting a different exception;
Caused by: org.opensaml.xml.validation.ValidationException: IssueInstant is
required attribute
at
org.opensaml.saml2.core.validator.Assert
Hi Pradeep,
Sorry, May be I didnt convey it properly. If you refer the camel context
above. I have direct endpoints, If I use a test class it wont work.
For example: I can mock direct:B, but if you refer 'Hop1' route it consumes
from direct:B. In this scenario it will fail because, there cannot
You can take a look at the camel-example-cafe in the camel examples directory,
there are some trick to inject the mock endpoint.
At the mean time, you can leverage camel properties component to replace the
direct endpoint with the mock endpoint.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.r
Hi,
Since you are using spring DSL, Instead of copying the routes into
test/resources you can directly point the actual routes located in
src/main/resources in your test class and to replace the actual endpoints
with the mock end point you can use property place holder pointed to
separate propert
it does not find json-path in the schema
By the way Would you know the response to my other question about xpath.
I transformed my json in xml but I have an issue to use xpath
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-jsonpath-tp5749674p5749756.html
Sent from the
Can you submit a simple test case to show us the error that you faced?
--
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 4, 2014 at 10:33:51 AM, Lydie (lprev.
hello,
Mt header has a herder called RouteConfiguration which contains xml ( as
string):
prints:
* enabled***
I am trying to use xpath totest the value of key
I have tried this:
no and it does not work!
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-jsonpath-tp5749674p5749753.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Riders,
I have a came context like the below one. I am going to do unit testing for
each and every route. I am still wondering why no body has asked this
question early. ( May be I didnt find it )
How can I do unit testing for each and every route ?
Camel context:
Dan - Thanks for your help. I was able to use POJO format instead of
CXF_MESSAGE format to work with WSS4J.
I suggest to really beef up the documentation for CXF component. Especially
this following line, it makes me believe that in order to work with
interceptors, I would have to use CXF_MESSAGE
It is in the same bundle.. I was able to do it like this:
resource:classpath:cms-files/saml.xml
Thanks!
Jin
--
View this message in context:
http://camel.465427.n5.nabble.com/read-file
Jin,
Is the file in a different bundle? You have to add your resource bundle as a
dependency.
Hadrian
On Thursday 03 April 2014 01:07:53 chaij wrote:
> Is possible to read file using Camel from classpath? This file lives in the
> bundle.
>
> I have a xml file and want to read it in using file
Thanks! I am getting the following exception. How should I fix or debug it?
org.apache.cxf.binding.soap.SoapFault: SAML signature validation failed
at
org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor.createSoapFault(WSS4JInInterceptor.java:790)[162:org.apache.cxf.cxf-rt-ws-security:2.7
If you want the service implementation to be called and route the message to
Camel route , you need to take a look at the ProduceTemplate[1], which could
act as a client of Camel route.
[1]https://camel.apache.org/producertemplate.html
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
No, you don’t need to do anything.
I just have a quick question for it. Do you use blueprint to define your camel
route?
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁wille
Have a look at [1] and the method executeWithOptionalParameterNewStyle().
[1]
https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppSubmitSmCommandTest.java;h=c74ca76f850bc488826d6463dee3f7df84605281;hb=camel-2.12.x
Be
Apache Camel 2.13.1 doesn't exist at present.
Can you share the code of your beans?
Can you share your log files (debug level)?
Best,
Christian
-
Software Integration Specialist
Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator P
And consider to upgrade to 2.13.0.
Best,
Christian
Am 03.04.2014 12:31 schrieb "amit.bce" :
> We are using camel 2.5.0 in our project and are currently facing some
> performance problems in the product. On analysis, we found out that a good
> amount of memory is been held up by the mina sockets.
I have a simple route as following
from("file:{{input.dir}}?sortBy=file:name&include=.*.data&move={{done.dir}}&delay={{poll.delay}}")
.id("FileConsumer")
.log("Processing file ${file:name}")
.beanRef("FileBinder","bind")
.beanRef("PU","execute")
.log("Comple
I am using camel 2.13.0
What else do I need to do?
I added the dependencies in the pom file should I add the schema?
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-jsonpath-tp5749674p5749737.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi
You can use wireTap("seda:remote") or likely also
.to("seda:remote?waitForTaskToComplete=Never")
On Thu, Apr 3, 2014 at 1:10 PM, a746076drdrb wrote:
> Hello,
>
> I have route like:
>
> from(file:input?preMove=inprogress&moveFailed=failed)
> .process(new SomeProcessor())
> .("file:input/proces
This is specific to CXFRS server, it only acts as a matcher, and then
sets various matched values on the Camel exchange.
I guess you may want to use cxfrs bean...
Also feel free to experiment with Camel restlet/http/jetty, etc.
Re CXF: you can have native CXF JAX-RS server endpoint containing
Hi,
I am confused with the behaviour of cxf rest web service with camel route
file. I have noticed the control never go inside the implementing class of
the rest service interface.
Following are the steps how i am writing the web service using cxf jaxrs and
camel
1. i have create a interface.
You should be able to just specify the username and password in the URL
since Camel 2.12.3. See available options: http://camel.apache.org/cxf.html.
E.g.
to("cxf://.&username=foo&password=bar");
Regards,
Richard
http://richardlog.com
On Thu, Apr 3, 2014 at 4:38 PM, Fernando Cesar da Silva <
Thanks for the help.
One more question, what if my proxy (not NTLM) require user/pass to
authenticate? The CXF Client Element doesn't have these attributes.
Regards.
Fernando Cesar
- Mensagem original -
De: "Aki Yoshida"
Para: users@camel.apache.org
Enviadas: Quarta-feira, 12 de març
First, I appreciate the ideas:
@Richard -- that could work but it would require that inheritance be in
play. The whole build has to be a subclass of route builder to get it
right. This would be problematic in a situation where you would want to use
different base classes, each with their own helpe
Hi,
Am not getting any exception if i try to pass invalid ip for sftp using
consumerTemplate. My spring dsl looks like this.
You have even write a custom Java Code for FTP file retrieval in a Camel
processor bean after receiving the data from jms queue.
Like
and write a java code in FTPClient.java implementing the interface
Processor which takes in a object of Exchange. Once the file is received,
just add it to
Are you trying to dynamically change directory from where you want to download
files ?
It seems it is not possible for to uri in ftp component.
You might want to use filter which can specify the pattern to select for
download . Something like ...
public class MyFileFilter implements GenericFil
Hello,
I have route like:
from(file:input?preMove=inprogress&moveFailed=failed)
.process(new SomeProcessor())
.("file:input/processed", "file:route2", "file:route3").to("seda:remote")
from("file:route2").to("ftp:foo)
from("file:route3").to("ftp:bar)
from("seda:remote").to("http:getfile").to("mye
Hi Guru
Once you store the values in a property or header in Route A , will the
route B wait till A has populated the values. How can Route B be notified
of this event.
When a camel project starts , all the routes will start together right?
Though I haven't used it, will pollEnrich be useful he
To handle timeout on client side for EJB service call, i used
Future and had set time out time over future object. Having this,
both success and time out cases are working fine.
But the problem here is when i take thread dump i could see that the thread
is in waiting state.
When i manually stop an
Hi
I suggest you check the release notes yourself.
And you can do a source diff for camel-mina source code for 2.5.0 vs
2.12.0 etc and see the code changes
On Thu, Apr 3, 2014 at 11:57 AM, amit.bce wrote:
> We are using camel 2.5.0 in our project and are currently facing some
> performance pr
We are using camel 2.5.0 in our project and are currently facing some
performance problems in the product. On analysis, we found out that a good
amount of memory is been held up by the mina sockets.
Hence there is a suggestion to upgrade our product to use camel 2.12.0 which
claims to have some pe
I assume all routes are in the same camel context. In that case, you can
retrieve the values whatever you want using any evaluators ( Based on your
message type, like XPath, XQuery, OGNL )
Store each value in headers or in properties. Then by calling these
headers/properties you can form the 'fro
Yes. You should be able to !
I think you can use Camel simple and call the file like this
classpath:resource:/path/filename.ext
Give it a shot. But go through simple component first, you will get some
idea.
Cheers
Guru
--
View this message in context:
http://camel.465427.n5.nabble.com/read-f
41 matches
Mail list logo