The HttpOperationFailedException class has methods to get the response code.
On Wed, Mar 27, 2013 at 3:11 PM, vss123 wrote:
> Hi,
>
> We use camel 2.10.3 with Scala DSL.
>
> We have route that does a http post. We want to retry based on the response
> code.
> For e.g. no retries for 4xx and 2 re
On Mon, Mar 25, 2013 at 4:50 PM, Chris Wolf wrote:
> Claus,
>
> Ok, that worked - thanks a lot.
>
> BTW, the unit test is for testing custom RoutePolicy. The route in
> the test looks like:
>
> from("seda:foo").routeId("foo").noAutoStartup().routePolicy(policy)
> .loop(10).copy().delay(1000)
After digging the code for a while, I found it is impossible to set the
multiple exceptions into handle method, as it use implicit manifest parameter
to pass the Class related information.
Here is a workaround by calling the onException method directly in the scala
code like this
builder.o
With this technique, developers have to remember to add the custom
processor at the start of each route. (Unless it's set from an
interceptor...).
Since the user explicitly asked for a non intrusive technique,
EventNotifier is the only method that fulfills that requirement. Set once
per Camel con
That worked, thanks a lot!
--
View this message in context:
http://camel.465427.n5.nabble.com/Ignore-JMSReplyTo-tp5729973p5730015.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Oh sorry.. I did not explain clearly.We wanted to throw different exceptions
for 4xx and 5xx errors and handle them differently. The problem is that we
do not know how to get the exception object. We tried this
handle[HttpOperationFailedException]{ process(new Processor {
def proc
Hi
See this FAQ
http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html
You can also some how to do this on this page
http://camel.apache.org/exception-clause.html
If you have a copy of Camel in Action book, then section 5.5 covers
such a use case to only handle certain con
On Thu, Mar 28, 2013 at 9:36 AM, Raul Kripalani wrote:
> With this technique, developers have to remember to add the custom
> processor at the start of each route. (Unless it's set from an
> interceptor...).
>
> Since the user explicitly asked for a non intrusive technique,
> EventNotifier is the
But isn't it the same with the Synchronization approach? In all cases,
special caution is required when the Async Routing Engine kicks in, or when
threadpool-based EIPs are involved. I mentioned it in my first reply.
Regards,
Raúl.
On Thu, Mar 28, 2013 at 11:25 AM, Claus Ibsen wrote:
> On Thu,
Hi
I want to develop an interceptor, which I can turn on on demand using spring
DSL, by adding the xml file to the spring configuration list.
So what I want to have
myInterceptor.xml
Sometimes I want to run configs: normal-config.xml
but sometimgs normal-config.xml,myInterceptor.xml
I
Hi All,
I have found a very simple solution to this problem.
if we write
.unmarshal(new JacksonDataFormat(Map.class))
it will get the JSON in the body and try to map this to a Map object. It
will successfully map the Json if immediate children of key value type and
not of the List type. it will
hi
everything goes well with my jdbc connection and my routes but i have to
receive data from my exchange i don't know where is the problem with my
processor here
public void configure() {
/* from("file:src/data?noop=true")
.to("jms:queue:Orders")
.bean(O
hi i used to send file to a jms queu this is my code an then error:
/code*/
public void configure() {
from("file:src/data?noop=true")
.choice()
.when(xpath("/person/city ='SFIN'"))
.to("jms:queue:Orders")
Hi
What do you do in your bean?
.bean(OrderToOracle.class, "toSql")
What method signature does the toSql method have?
The exception indicate you use a @XPath annotation on one of the
paramaters and its value is empty, but a number was expected.
On Thu, Mar 28, 2013 at 2:11 PM, takidean wrot
Hi,
How can I have access to more ciphers with camel-sftp ?
Here is some log of it working displaying the available ciphers :
2013-03-28 14:49:04,619 INFO [SftpOperations] JSCH -> kex: client:
diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1
2013-03-28 14:49:04,619 INFO [SftpOper
Thanks Ibsen, I followed the below steps and it works like Charm‼!
The original password we have will be encrypted with the master password.
F:\Camel\apache-camel-2.10.3\lib>java -jar camel-jasypt-2.10.3.jar -c encrypt
-p secret -i Ganesh
Encrypted text: wJdhCP0vS8ynUrUSDVwF1Q==
The Encrypted t
Try exchange.getIn() instead of exchange.getOut().
Sent from a mobile device
Am 28.03.2013 20:23 schrieb "takidean" :
> hi
> everything goes well with my jdbc connection and my routes but i have to
> receive data from my exchange i don't know where is the problem with my
> processor here
>
>
On Thu, Mar 28, 2013 at 3:36 AM, Claus Ibsen wrote:
[...]
>> have expected. Is there a way to restart
>> the route from the top upon resuming? Or do you recommend any other
>> "busy work" kind of route to use
>> for RoutePolicy testing?
>>
>
> The route only runs if there is messages available o
Hi Clauss,
Based on the documentation it looks like idempotentkey is available from 2.11 ,
does that mean we have to wait for 2.11 release?
idempotentKey
Expression
Camel 2.11: To use a custom idempotent key. By default the absolute path of the
file is used. You can use the File
Language
Hello,
is Camel capable of the following:
I have a CamelContext with several routes defined and running. I have
specified an ErrorHandlerFactory in the CamelContext (e.g. a
DefautlErrorHandlerBuilder with maximumRedeliveries, redeliveryProcessor,
and redeliverDelay properties defined) so that all
So I have the book, "Camel In Action", which is a very good and
thorough treatment of camel-core. However, now my development efforts
are starting to hit severe turbulence upon making the jump from
camel-core to camel-cxf, in particular, how to consume a RESTful
service?
I read these:
http://camel
Hi,
If you have used CXF before, you can reuse most of you knowledge about the CXF
in camel-cxfrs or camel-cxf component.
If you just want to access the RESTful service from examples, you can take a
look at some unit tests[1] in the camel-cxfrs.
[1]https://svn.apache.org/repos/asf/camel/trunk/c
Hi All:
Does anybody can give me a link or an answer about this problem:
How many Escape characters in Camel ?
For example, if I want to send an email, and the password includes '&', then I
have to use & right?
Thanks.
Gangliu
23 matches
Mail list logo