Re: RouteDefinition.recipientList(...) post processing callback

2013-05-02 Thread Claus Ibsen
Hi You can have 2 recipient lists The first for the file endpoint And the 2nd for the custom chmod But I guess you want one recipient list, and have 2 endpoints grouped. But this is currently not supported. On Mon, Apr 29, 2013 at 2:35 PM, FuzzKat Media wrote: > Hi > I have a file route that s

Re: 2.11, File2, Quartz: threads leaking

2013-05-02 Thread Claus Ibsen
Hi Check this page again as its updated how to stop a route from a route http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html Also there was a bug so the MBean for the scheduled thread pool was not removed when you removed the route. This has been fixed in 2.11.0, and upcoming releas

Re: Upgrade Camel 2.10.1 - 2.11.0 - Camel keeps restarting

2013-05-02 Thread Claus Ibsen
Hi Did you figure out this problem? On Wed, May 1, 2013 at 1:42 PM, Martin Stiborský wrote: > Hi guys, > I'm trying to upgrade Camel and Karaf in our project to newer version, > as the Camel 2.11 is out. > > Camel 2.10.1 -> 2.11 > Karaf 2.2.10 -> 2.3.1 > > There were needed few modifications. no

Re: Can't connect to Oracle 11g

2013-05-02 Thread skysw...@gmail.com
Hi Claus, Thank you for the advice, I will make a try and feedback later On Fri, May 3, 2013 at 1:26 PM, Claus Ibsen wrote: > Hi > > You have to check the logs to see what goes on. And also make sure the > SQL query is not returning very big data as then it takes a long time. > > And you can

Re: CamelHttpUri and Enricher

2013-05-02 Thread Claus Ibsen
Hi You can use recipient list instead http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html It also supports an aggregation strategy to "merge" the result http://camel.apache.org/recipient-list.html On Thu, May 2, 2013 at 9:00 PM, Al Ferguson wrote: > Hi, > > > Is it possible to override

Re: Is possible to wrap a part of route?

2013-05-02 Thread horyna
But how to get the parameters into the route? I dont want to store everything into header, body ...this will grow up the code again -- View this message in context: http://camel.465427.n5.nabble.com/Is-possible-to-wrap-a-part-of-route-tp5731917p5731946.html Sent from the Camel - Users mailing l

Re: not getting combined response from aggregator

2013-05-02 Thread bhushand
Hi Sachin That works for me. Thanks a lot -Bhushan -- View this message in context: http://camel.465427.n5.nabble.com/not-getting-combined-response-from-aggregator-tp5731362p5731945.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel retries a message after the message has been completed successfully

2013-05-02 Thread Claus Ibsen
Hi You can load the content of the file into memory before calling CXF. On Fri, May 3, 2013 at 4:51 AM, bocamel wrote: > Hello, I was testing a Camel CXF web services application. I ran into this > problem. > > In my Camel web services test application, I have two rout

Re: A small error in the MINA docs

2013-05-02 Thread Claus Ibsen
Hi Thanks I have updated the docs. Takes a bit to sync to the static html pages with the update. On Fri, May 3, 2013 at 7:31 AM, wrote: > Hi. > > I just noticed that there is an error in the MINA documentation > http://camel.apache.org/mina.html > > In the options it says for "sync" parameter:

Re: JCAPS to Camel

2013-05-02 Thread Claus Ibsen
Hi And if you are looking for graphical tooling then there is some 3rd party tools such as Fuse IDE http://fusesource.com/products/fuse-ide/ The source code is at github at: https://github.com/fusesource/fuseide And a web based tool as well http://hawt.io/ And you may find links to other tools

Re: JCAPS to Camel

2013-05-02 Thread Claus Ibsen
Hi We got started on this 5 years ago. And my former client is retiring their last JCAPS integration this year. Just being able to "free" your business logic and store this in a regular code repository like SubVersion, Git, etc is a big big win. And using regular Java / Spring code that everybody

A small error in the MINA docs

2013-05-02 Thread mikko.wuokko
Hi. I just noticed that there is an error in the MINA documentation http://camel.apache.org/mina.html In the options it says for "sync" parameter: "You can configure the exchange pattern to be either InOnly (default) or InOut. Setting sync=true means a synchronous exchange (InOut), where the c

Re: Can't connect to Oracle 11g

2013-05-02 Thread Claus Ibsen
Hi You have to check the logs to see what goes on. And also make sure the SQL query is not returning very big data as then it takes a long time. And you can also look on the Oracle side what goes on, if it has received the SQL and is executing it etc. On Thu, May 2, 2013 at 11:07 AM, 黄骞 wrote:

Re: bean, collections in parameters - groovy

2013-05-02 Thread Claus Ibsen
Hi Is it the same map instance you want to use? If you register it in the Camel registry, then Camel will use the same instance, as it just lookup the instance by the name you assigned to it, when it was added to the registry. You can also use the same bean instance and have the bean with a share

Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-02 Thread Claus Ibsen
The seda component allows to specify a number of concurrent consumers, so can you process messages in parallel if you want. When you send a message to a seda endpoint it depends if its InOnly or InOut. The latter will have the sender wait for the message to complete (but you can configure this).

CamelHttpUri and Enricher

2013-05-02 Thread Al Ferguson
Hi, Is it possible to override the address of an enricher? I've tried the following but it does not work. The Enricher still calls the address of its own uri parameter, and not the one from the CamelHttpUri header. Thanks, Al. F -- View this message in context: http://camel.465427.n5.nab

https4(Apache Camel 2.10.3) component option httpClientConfigurer for SSL is not working when i have two different configure for two different route

2013-05-02 Thread apatel
https4(Apache Camel 2.10.3) component option httpClientConfigurer for SSL is not working when i have two different configure for two different route. we need you help to resolve this issue or any alternate solution. Please let me know if you have questions or need more information. We are using

Camel retries a message after the message has been completed successfully

2013-05-02 Thread bocamel
Hello, I was testing a Camel CXF web services application. I ran into this problem. In my Camel web services test application, I have two routes: First route reads messages from a folder (src/data/in), sends the messages to my web services, and then writes the response to another folder (src/dat

Re: Is possible to wrap a part of route?

2013-05-02 Thread Raul Kripalani
Place the common part in it's own route and make it consume from a Direct endpoint, e.g. direct:common. Raúl. On 2 May 2013, at 14:27, horyna wrote: > We have in lots routes some common part. e.g.: > > .setHeader("h", constant(THIS_IS_VARIOUS_FOR_EVERY_ROUTE)) >.filter(method("

Re: Truststore in HTTP4 component not working

2013-05-02 Thread fbarbat
I must add it looks like there are two instances of HttpComponent. One is configured with SSL context and the other is not. Is that ok? -- View this message in context: http://camel.465427.n5.nabble.com/Truststore-in-HTTP4-component-not-working-tp5731925p5731926.html Sent from the Camel - Users

Truststore in HTTP4 component not working

2013-05-02 Thread fbarbat
I use the following code: KeyStoreParameters ksp = new KeyStoreParameters(); ksp.setResource("truststore_test.jks"); ksp.setPassword("password"); TrustManagersParameters trustManagersParameters = new TrustManagersParameters(); trustManagersParameters.setKeyStore(ksp); SSLContextParameters scp =

share database connection properties between JPA and JDBC consumer

2013-05-02 Thread Christian Jacob
Hi there,maybe I'm running in the totally wrong direction. My problem is this: I have a database table "order" and a 2nd database table "orderlines". My task is to produce a csv file for each "order" entry with a value of 0 in a column "status". This csv file should contain some informations of the

2.11, File2, Quartz: threads leaking

2013-05-02 Thread mdo
Hello, I've constructed a thread leak somehow. I found some discussions/issues describing past thread leaking problems, e.g.: http://stackoverflow.com/q/10071814 http://stackoverflow.com/q/14992793 https://issues.apache.org/jira/browse/CAMEL-5072 http://camel.465427.n5.nabble.com/FTP-ConsumerTempl

RE: How to deploy an executable jar for a standalone camel application?

2013-05-02 Thread Speck, Dan
Magnus, Thanks for your reply. I am using Camel 2.11.0, gradle 1.5 and groovy 2.1.1. I found a gradle plugin called gradle-one-jar by rholder (https://github.com/rholder/gradle-one-jar) that did the trick. Here are the relevant bits from my build.gradle: apply plugin: 'groovy' apply plugin: 'a

Re: How to dynamically configure directory on file consumer

2013-05-02 Thread Erker, Carsten
I'd like to share my workaround in case anybody is interested (using Camel 2.11.0): I was successful with the following approach: camelContext.stopRoute( "my-file-route", 30, SECONDS ); camelContext.removeRoute( "my-file-route" ); MyPollingRoutes newRoutes = new MyPollin

Re: bean, collections in parameters - groovy

2013-05-02 Thread Bovas
Thanks Claus for your answer. I do another way, I create a fonction which return my map (like Christian said, thanks to you Christian). But now I just search how I could use my map in another file. i.e => 1) from(file1) bean(function1) function which returns a map 2) from(file2) bean(function2

Re: Is possible to wrap a part of route?

2013-05-02 Thread mdo
Hey, horyna wrote > is here possibility how to wrap in and call like one part? e.g.: > > from("uri").unmashal...callCommonPart(parameters) ...marshal yes, you can do something like that: final ProcessorDefinition processorDefinition = from(...)...process(...) After that you can continue on th

Is possible to wrap a part of route?

2013-05-02 Thread horyna
We have in lots routes some common part. e.g.: .setHeader("h", constant(THIS_IS_VARIOUS_FOR_EVERY_ROUTE)) .filter(method("serv", "method").isEqualTo(false)) .to(VARIOUS_URI) .beanRef("serv", "method"); is here possibility how to wrap in and call l

Re: bean, collections in parameters - groovy

2013-05-02 Thread Claus Ibsen
Hi I think ${ } from the simple language syntax in Camel conflicts with groovy gstrings. So you can use $simple{ } instead to avoid this clash. Or redefine the simple language to use other tokens than ${ } So something like: .to("bean://verbes?method=myFonction($simple{ref:myMap})") On Thu, M

Re: File2: only move non-filtered

2013-05-02 Thread mdo
Thank you Claus! Just to add it to this thread: I now use the "include" option of file2 with my regex. -- View this message in context: http://camel.465427.n5.nabble.com/File2-only-move-non-filtered-tp5731908p5731913.html Sent from the Camel - Users mailing list archive at Nabble.com.

Invoking REST Service from Camel Spring DSL not working

2013-05-02 Thread anirban_konar
1. We are trying to invoke REST Service from Camel route, but getting the error: org.apache.cxf.interceptor.Fault: Could not generate the XML stream caused by: com.ctc.wstx.exc.Wstx EOFException: Unexpected EOF in prolog Our route is like this :

Re: Camel Splunk component

2013-05-02 Thread Claus Ibsen
Hi Preben Nice to see the progress on this component. Yeah when Splunk publish their JARs to Maven Central and under an Apache approved license (I assume it may already be) then I think we can accept it as donation into the ASF codebase. PS: As usual the OSGi users would like to know if the splu

Re: Camel Splunk component

2013-05-02 Thread Olivier Lamy
Hi, Could be great having those jars available on maven central! especially for this component. [Out of topic] but could be great having those jars (https://github.com/splunk/SplunkJavaLogging) on Maven central too :-) 2013/4/9 Damien Dallimore : > We have plans to release the Splunk SDK for Java

Re: File2: only move non-filtered

2013-05-02 Thread Claus Ibsen
Hi You need to use the filter option(s) on the file endpoint to skip those files http://camel.apache.org/file2 There is options like: include, exclude, antInclude, antExclude, filter, etc. There is details on that link. On Thu, May 2, 2013 at 12:58 PM, mdo wrote: > Hello, > > I have a directo

Re: enabling the route, if destination endpoint is not available

2013-05-02 Thread gafoor shaik
Camel version is : 2.9.2 using Java DSL RouteBuilder and my destination end point (cxf webservice). Thanks, Gafoor -- View this message in context: http://camel.465427.n5.nabble.com/enabling-the-route-if-destination-endpoint-is-not-available-tp5731848p5731907.html Sent from the Camel - U

File2: only move non-filtered

2013-05-02 Thread mdo
Hello, I have a directory structure where I want to selectively process files while leaving the filtered ones untouched. My route: from("file:///.../somedir?recursive=true&move=.done") .filter().simple("${file:onlyname} regex '.*[.]txt'") .process(new MyProcessor())

CXFEndpoint and SOAPAction HTTP header

2013-05-02 Thread ddewaele
I'm using the cxfEndpoint in my camel flow to act as a webservice producer. I have a number of clients that are able to send SOAP messages to that endpoint, where Camel does the required processing and returns either a valid SOAP response or a SOAP fault. http://localhost:9080/app/webser

Re: bean, collections in parameters - groovy

2013-05-02 Thread Bovas
Thanks for your anwsers. But I don't success. I use the default Camel registry (jndiContext) *def jndiContext = new JndiContext() def mymap= [:] mymap["Mode"]="Zip" mymap["test"]="test" jndiContext.bind("myMap",mymap)* from("file://path") .to("bean://myclass?method=myFonction(${ref:myMap})") =

Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-02 Thread anand_tech
Thanks, can you also have a look at the last part of my question i.e. route having both direct and seda component. -- View this message in context: http://camel.465427.n5.nabble.com/Back-to-Basics-Apache-Camel-Routes-and-Direct-Component-tp5731899p5731903.html Sent from the Camel - Users mailin

what's wrong with mina endpoint

2013-05-02 Thread takidean
Hi i have to send from a web service an id to a socket server . when i get the id in my exchange then i use to send it i get this error [qtp21158020-25] WebApplicationExceptionMapper WARN javax.ws.rs.WebApplicationException: org.apache.camel.CamelExchangeException: Can

Re: Back to Basics : Apache Camel Routes and Direct Component

2013-05-02 Thread Claus Ibsen
Hi direct is like direct method invocation in java code, eg like calling a method on a java class. So this call happens with the current thread. So like in java if you have concurrent threads calling the same method, then this happens concurrently. And the same for the Camel direct component. SE

Back to Basics : Apache Camel Routes and Direct Component

2013-05-02 Thread anand_tech
I am bit confused about Camel routes and its two endpoints : Direct and Seda. Well let's say i have a route like this : public void configure() { from("direct:services") .process(//Some processing here) .to("http://ThirdPartyServers";) } On top of this I have a rest w

Re: How to get a specific value from a json string?

2013-05-02 Thread skysw...@gmail.com
Hi Thank you for the help! 1.For the json-path library, can you give me some blueprint using example? 2. I have covert the json into a map struction using jackson with the following code How can I get the value of "id" field? Can you give me some example? Thank you again! 黄骞/Huang Q

Re: Can't connect to Oracle 11g

2013-05-02 Thread 黄骞
Hi, Thank you very much for the suggestion! I think I missed some code in my first letter. The real code is select * from GEO_FEATURE However, I can get the "start db" log, but cannot get "stop db" log. Can you give me some further suggestin? Thank you ! 黄骞/Huang Qi

Re: Can't connect to Oracle 11g

2013-05-02 Thread Claus Ibsen
Hi You need to the route to start with a select * from GEO_FEATURE eg you can also see this by the examples on the jdbc doc page http://camel.apache.org/jdbc On Thu, May 2, 2013 at 10:20 AM, skysw...@gmail.com wrote: > Hi everyone, > > I want to do some search in Oracle 11g

Re: How to get a specific value from a json string?

2013-05-02 Thread Claus Ibsen
Hi Yeah I would like to see a json expression language built-in out of the box in Camel. This library seems compelling https://code.google.com/p/json-path/ You can also find some talks about json expression libraries here http://stackoverflow.com/questions/4849816/is-there-a-java-implementation-

Can't connect to Oracle 11g

2013-05-02 Thread skysw...@gmail.com
Hi everyone, I want to do some search in Oracle 11g with the following xml. select * from GEO_FEATURE However I got response and no error log, is there any possible reason or some suggested debug method for me? Thanks a lot!

Re: NoSuchComponentException in CamelContext during Karaf Shutdown

2013-05-02 Thread Tobias Hofer
Thanks for the hint. I forgot to check that. I switched now to Camel 2.11.0 but the problem still exists. The behavior is exactly the same as I already described. Regards, Tobias - Original Message - > From: "Claus Ibsen" > To: users@camel.apache.org > Sent: Thursday, May 2, 2013 7:23:

How to get a specific value from a json string?

2013-05-02 Thread skysw...@gmail.com
Hi everyone, I came across a simple problem and I need some help. I get a json string from a jms, and I want to get a specific value from the json string. how can I do it in blueprint file? For example, the json from jms queue "FEATURES.JSON" is {id:"123", name:"test", value:"dfsa"} I want to