I assume that issue would have been resolved now. In case it is not
change your source uri
from :
from("sftp://hostname/home/mydir/xmls?username=username&password=password";)
to:
from("sftp://hostname//xmls?username=username&password=password")
Suppose user login directory is: home/mydir/
and Po
If you look at the jsonpath documentation you can see there is a not equals
operator you can use.
https://github.com/jayway/JsonPath
But for your case, can you not just write:
.when().jsonpath("$.table.length()>0")
On Wed, Mar 22, 2017 at 4:21 PM, rafaeltuelho [via Camel] <
ml-node+s465427n579586
Try with in the on exception so you tell Camel both
to handle the exception but to mark the tx as rollback
On Wed, Mar 22, 2017 at 8:01 PM, hammod wrote:
> I have the following routes:
>
>
>
>
> stopOnEx
I have the following routes:
Yes it is transacted
--
View this message in context:
http://camel.465427.n5.nabble.com/Message-is-lost-while-the-connection-to-ActiveMQ-is-refreshed-tp5795808p5795895.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Any other advice out there as to the problem I am trying solve?
--
View this message in context:
http://camel.465427.n5.nabble.com/ExchangeTimedOutException-tp5795836p5795893.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Sorry, it appears my code snippet was not shown in the original message:
Here it is:
.choice()
.when().jsonpath("$.table[?(@.rows size 0)]") <<<-- I need to negate
HERE!!! or something like size > 0
.log("rows returned: " + simple("${body}"))
.otherwise()
.log("no rows returne
Hi.
How can I negate a Jsonpath expression in when() clause?
Actually I need to test if a returned json body has a given array not
empty... I coulnd not find a valid JSON expression to do this...
I'm using this:
--
View this message in context:
http://camel.465427.n5.nabble.com/jsonpath-