Re: Camel Concatenating input and output for an endpoint

2015-07-31 Thread vivekrao001
Hi, Thanks For the response, the particular strategy I'm looking for is to send the actual payload (before splitting) to the each split route, so that I can do some updates at all the splitted routes in parallel, instead of aggregating all the routes and waiting till all the sub-splitted routes

SFTP - Twice as many retries as specified in maximumReconnectAttempts

2015-07-31 Thread IgnatiusReilly
Hi, I am working on a Camel Route that uses the Sftp component. I have set the maximumReconnectAttempts to 3, but whenever the connection fails I get 8 attempts - that is, twice as expected (1 attempt + 3 retries). After some debugging I noticed that the method connect from

Re: Conditionally omitting a portion of a route ...

2015-07-31 Thread SteveR
I also tried using the PredicateBuilder.constant() method to create a predicate that resolves to true/false, based on my Java configuration boolean: *private static Boolean mirrorEnabled = null; // Set based on the enabled MIRROR configuration value. Predicate mirrorWireTap =

WildFly-Camel-3.0.0 released

2015-07-31 Thread Thomas Diesler
Friends, I’m happy to announce that WildFly-Camel 3.0.0 https://github.com/wildfly-extras/wildfly-camel/releases/tag/3.0.0 has been released. It is the first release that provides Camel functionality on WildFly-9. We now provide WildFly-Camel as feature pack and added five more to the set of

Re: Conditionally omitting a portion of a route ...

2015-07-31 Thread Claus Ibsen
Use the force luke ... just use java code, with a if branch For that you need to break the dsl into the elements and build them together ProcessorDefinition part = from(xxx).to(xxx); if (foo) { part = part.wireTap(xxx) } // continue routing here part.xxx On Fri, Jul 31, 2015 at 2:30 PM,

Re: Conditionally omitting a portion of a route ...

2015-07-31 Thread SteveR
I dumped the route as XML from within VisualVM and it appears that my *filter() * is encompassing the remainder of the route, instead of just the *wireTap()* portion. So when I set *mirrorEnabled = false*, nothing gets routed to the intended destinations. ?xml version=1.0 encoding=UTF-8

Re: Error in Tokenize in XMl DSL

2015-07-31 Thread Claus Ibsen
You have 2 expressions as you have both simple and tokenize. You can only use 1. So remove simple On Thu, Jul 30, 2015 at 11:14 AM, fxthomas felix.tho...@gmail.com wrote: hello, I have a route defined as route customId=false id=routeCSV xmlns=http://camel.apache.org/schema/spring;

Error in XML DSL Tokenize

2015-07-31 Thread Felix Thomas
hello, I have a route defined as route customId=false id=routeCSV xmlns= http://camel.apache.org/schema/spring; from uri=file:{{camel.csvinpath}}?noop=trueamp;delay=500amp;readLock=trueamp;move={{camel.csvinpath}}/ split id=splitCSV streaming=true parallelProcessing=true

RE: Camel XmlJson Question

2015-07-31 Thread srinit
I am trying to xml == json using following code @Override public void xml2json(String xml) throws JSONException { JSONObject xmlJSONObj = XML.toJSONObject(xml); String jsonPrettyPrintString = xmlJSONObj

Error in Tokenize in XMl DSL

2015-07-31 Thread fxthomas
hello, I have a route defined as route customId=false id=routeCSV xmlns=http://camel.apache.org/schema/spring; from uri=file:{{camel.csvinpath}}?noop=trueamp;delay=500amp;readLock=trueamp;move={{camel.csvinpath}}/ split id=splitCSV streaming=true parallelProcessing=true

Re: Conditionally omitting a portion of a route ...

2015-07-31 Thread SteveR
Looks like I spoke too soon, it doesn't look like it works when *mirrorEnabled = false*. I get: org.apache.camel.FailedToCreateRouteException: Failed to create route MIRROR_ROUTE_ID at: Threads[[Filter[bean{com.mission.RouteManager$MirrorBean, method=isMirrorEnabled} - [WireTap[no uri or ref

Conditionally omitting a portion of a route ...

2015-07-31 Thread SteveR
A have a route similar to the below, whereby I also have a Java configuration variable (e.g. *mirrorEnabled=true/false*) that tells me whether or not to do the wiretap mirror. My question is; what is the best way to implement the route filtering to skip the wireTap() portion of the route if

Re: Conditionally omitting a portion of a route ...

2015-07-31 Thread SteveR
So far, I have this solution which uses Camel Bean Language/Message Filter. I always want the route to send to the *firstToURIs*, but only send to the mirror wiretap if the *mirrorEnabled* configuration value is set to true. * // //

jetty http to exec route example

2015-07-31 Thread dfgcamel
Hi, I've written a java application which I invoke using java -jar {application} from command line. I want to expose this application so that it can be called via an http request. I'm assuming the Jetty component is the way do do this? Can some one point me to an example of something like

Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2015-07-31 Thread Parthasarathi M.
Hi Team, I am getting the below mentioned exception changing from http to https. Pl help. java.lang.RuntimeException: Protocol mismatch for port 7002: engine's protocol is http, the url protocol is https at

Apache Camel Splitter, Threadpool and JMS

2015-07-31 Thread xlogger
I posted the question on stackoverflow 3 days ago but got no response so far... repost here to see if anyone could advice on that. http://stackoverflow.com/questions/31645916/apache-camel-splitter-threadpool-and-jms == I have defined the following route in spring xml to split rows in a

Re: Using shared Netty configuration with Rest DSL

2015-07-31 Thread arnaudeprez
Hi Claus, I confirm there is a glitch here when we use componentProperty instead of endpointProperty for netty4-http component. I suppose it's more related to the new rest dsl than the component itself. I'm not able to find an issue for that. Is that taken into account ? Otherwise I can log a

RE: Camel XmlJson Question

2015-07-31 Thread Vanshul . Chawla
Do you just need a plan vanilla xml to json and json to xml or do you need some modifications in your element names etc? Use dataFormats xmljson id=xmljson / /dataFormats And in case you want to convert xml to json , use marshal ref=xmljson / In case you want to convert json to xml,

RE: Camel XmlJson Question

2015-07-31 Thread Raul Kripalani
Hi, Have you tried using the camel-xmljson data format instead of custom code? Take a look at the link provided above. Raúl. On 31 Jul 2015 08:18, srinit sree.tallapa...@gmail.com wrote: I am trying to xml == json using following code @Override public void xml2json(String xml)

RE: Camel XmlJson Question

2015-07-31 Thread srinit
Hi Raul, I went through that page and unable get how I can use that for my case. I don't see any good example for xmljson under Examples section. - Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-XmlJson-Question-tp5770021p5770150.html Sent from the Camel -

Error in Tokenize in XMl DSL

2015-07-31 Thread Felix Thomas
hanks Claus worked line a Charm. But i got stuck on the CSV format. I have changed the XML to below, since I want to skip the First line of the CSV and skipFirstLine is not present in the version 2.15.1. split id=splitCSV streaming=true parallelProcessing=true tokenize token=\n/

Camel Rest DSL context-path not taken into account with netty4-http

2015-07-31 Thread Arnaud Deprez
Hi, Everything is in the subject. I've some Rest DSL routes with the following rest configuration : restConfiguration bindingMode=json component=netty4-http host=0.0.0.0 port=

Re: Error in Tokenize in XMl DSL

2015-07-31 Thread fxthomas
hanks Claus worked line a Charm. But i got stuck on the CSV format. I have changed the XML to below, since I want to skip the First line of the CSV and skipFirstLine is not present in the version 2.15.1. split id=splitCSV streaming=true parallelProcessing=true tokenize token=\n/

Re: Camel Rest DSL context-path not taken into account with netty4-http

2015-07-31 Thread Arnaud Deprez
Ah ok, Thx for your feedback ! On Fri, Jul 31, 2015 at 12:39 PM Claus Ibsen claus.ib...@gmail.com wrote: If I recall then the context-path in restConfiguration is only for documentation purposes and JMX API, you need still need to use that path as well in your rest-dsl On Fri, Jul 31, 2015

Re: Camel Rest DSL context-path not taken into account with netty4-http

2015-07-31 Thread Claus Ibsen
If I recall then the context-path in restConfiguration is only for documentation purposes and JMX API, you need still need to use that path as well in your rest-dsl On Fri, Jul 31, 2015 at 11:49 AM, Arnaud Deprez arnaudep...@gmail.com wrote: Hi, Everything is in the subject. I've some Rest

Re: Camel XmlJson Question

2015-07-31 Thread Raul Kripalani
Hey, You have examples of configuration with both Java DSL and the XML-based DSLs in the documentation [1] [2]. And you can also check out the unit tests [3] if you want to see full examples. That is, assuming you are already familiar with Camel. If you are not, you should start with the usual

Re: Throwing exception in a loop

2015-07-31 Thread Claus Ibsen
Yeah we fixed this recently so the loop will break out sooner now. Will be in the next release. On Thu, Jul 30, 2015 at 2:17 PM, clinton clint.pe...@ionep.com wrote: I'm using Spring DSL I coded a loop, to handle a retry situation. Once the function is complete, I wanted to break out, so I

Re: Using camel:routeContextRef under camel:camelContext

2015-07-31 Thread Roger2015
Hi, I am new to Spring and camel. I am experiencing the same issue for the unexpected element. May I know how to load the appContext via Spring first then load the route xml? Appreciate if you can provide me a sample for the loading appcontext via Spring. Thanks in advanced.