Re: Global exception policy across Route builder configure methods

2012-09-11 Thread Mitko Kolev
Hi, the "global" scope mentioned here http://camel.apache.org/exception-clause.html in this case actually means "route builder" scope. For example the rule for ValidationException will trigger for both routes in the same route builder (at least with the Camel version 2.6.x with which I did the tes

Re: Exec-component: get stdout streaming while not finished?

2012-09-10 Thread Mitko Kolev
Hi, you may try a custom ExecCommandExecutor, that starts a log reader thread to track the progress within its execute method. Regards, Mitko On Wed, Aug 29, 2012 at 4:44 PM, Lars Lipinski wrote: > thank you for your comment, Willem. > then it's like I figured out and I will develop a custo

Re: camel-exec: System Path is empty

2012-06-28 Thread mitko . kolev
Hi I just put this case in the documentation to avoid confusion in the future. Regards, Mitko From: Hilde To: users@camel.apache.org Date: 27.06.2012 13:47 Subject: Re: camel-exec: System Path is empty Hi Magnus! Thanks for this information, though it is not satisfying me. I supposed

Configure ProcessorFactory in CamelContext with Camel schema

2011-07-20 Thread mitko . kolev
Hi, it seems that there is no way to configure a ProcessorFactory in a camel context, when the context is defined with the Camel schema (the schema does not have such element) Can this be also considered to be added? I saw that there are other properties of CamelContext that are not present in

Re: Scheduled Polling Consumer on FTP endpoint

2011-07-11 Thread mitko . kolev
Hi leNerd, I solved this by adding a pollStrategy to the file: from("file:target/input/?pollStrategy=#pollStrategy&delay=1") from("quartz:yourSchedule") .bean("pollStrategy") public class FilePollStrategy implements PollingConsumerPollStrategy { @Override public boolean begin(Con

Re: Reading a pdf file in camel

2011-06-01 Thread mitko . kolev
Maybe you should take a look at pdfbox http://pdfbox.apache.org/ From: sumatheja To: users@camel.apache.org Date: 01.06.2011 17:39 Subject: Re: Reading a pdf file in camel Thanks for the response.. my requirement is to read the data in the pdf. Is that possible? -- View this message

Re: [RMX:#] How should you use message headers?

2011-05-05 Thread mitko . kolev
Hi Johannes, I would use a special purpose payload object based on approach B, because the name and timestame do not seem to be used by Camel endpoints. If you then need to send the name and the timestamp, for example as HTTP headers, I would use a special purpose route element that sets those

Re: DSL Parser

2011-03-25 Thread mitko . kolev
Hi, maybe it would be helpful to share what is your usecase for such functionality. I suppose you have already considered http://camel.apache.org/dynamic-router.html and the Camel WebConsole proposed. Technically speaking such parser code exists for the Spring DSL[2] and for the Java DSL it

Re: How to extend the Spring DSL ?

2011-02-10 Thread mitko . kolev
Hello Everyone, @Sebastian: maybe you could take a look at the Open eHealth integration Platform (named IPF). It has a Groovy DSL that extends the Camel Java DSL. Here is a link to get started http://repo.openehealth.org/confluence/display/ipf2/Core+features#Corefeatures-Scriptinglayer . If

Re: File component - infinite consume on failure

2011-01-14 Thread mitko . kolev
Hi Claus, Thank you for your answer. Your suggestion seems simple and I'll use it Regards, Mitko From: Claus Ibsen To: users@camel.apache.org Date: 13.01.2011 15:07 Subject: Re: File component - infinite consume on failure On Tue, Jan 11, 2011 at 3:24 PM, wrote: > Hello Everyone, >

File component - infinite consume on failure

2011-01-11 Thread mitko . kolev
Hello Everyone, I am having a problem using the file component's "inifinite consume on failure" feature. Here is what I want to do in the route: 1) from("file:input?delete=true") 2) validation step 3) processing step 3) put the transformed in a queue and finish

Re: [Camel-exec] dynamic parameters in Spring DSL

2010-10-21 Thread mitko . kolev
Hello Oliver, some functionality that could help you already exist in the Camel exec component. To use the component conveniently, you can use the "args" endpoint argument with whitespace separator, as described in the documentation http://camel.apache.org/exec.html. You can not however a

Re: [Camel-Exec] Properties and Header values in URI ?

2010-07-13 Thread mitko . kolev
Hi Oliver, you can also use the ExecBinding.EXEC_COMMAND_ARGS header to set the command args dynamically. The header value must be a List with the args. You may even implement your own org.apache.camle.Expression that returns the list based on the Camel exhcange (e.g. based on Exchange.FILE

Re: camel-activemq unable to serialize Body after camel-exec usage

2010-06-21 Thread mitko . kolev
Hi Francois, Did you try the following: and / or Regards, Mitko From: Francois Lefoll To: users@camel.apache.org Date: 21.06.2010 16:39 Subject: Re: camel-activemq unable to serialize Body after camel-exec usage Hi Mitko, Unfortunately, the error is not due t

Re: camel-activemq unable to serialize Body after camel-exec usage

2010-06-21 Thread mitko . kolev
Hi, try to convert the body to something that implements serializable (e.g. String), after the log endpoint. It seems that the log endpoint converts the body to a ByteArrayInputStream, which is not serializable. Regards, Mitko From: Francois Lefoll To: users@camel.apache.org Date: 2

Re: Component to send message to a external program as stdin

2010-03-26 Thread mitko . kolev
Hi, I am currently working on the issue https://issues.apache.org/activemq/browse/CAMEL-2549 I am thinking of something like: exec:myPorgram?args=arg1 arg2&input="line 1" line2 (space-separated "lines" in the URI, that can be optionally escaped with ") Is it ok in your use case? Mitko