Re: File component does not delete file

2014-07-02 Thread Gardella juan
Thanks Claus, I found the problem and let me know if you agree on create JIRA. I am processing a zip file with zip splitter. I am developing on windows machine and if some exception is not handled during the split the file could not be moved/deleted. It seems the splitter keeps the file open. The o

Re: File component does not delete file

2014-07-01 Thread Gardella juan
Yes, I discover that, but is it possible to update the document? this is not explicit mentioned. -- View this message in context: http://camel.465427.n5.nabble.com/File-component-does-not-delete-file-tp5753140p5753165.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File component does not delete file

2014-07-01 Thread Gardella juan
Using moveFailed does not solve the problem, "delete" does not delete the file when some exception happens during the execution, why? -- View this message in context: http://camel.465427.n5.nabble.com/File-component-does-not-delete-file-tp5753140p5753142.html Sent from the Camel - Users mailing

File component does not delete file

2014-07-01 Thread Gardella juan
Hello all, I am working with camel 2.13.1 and I had problems with delete option, where it says at File component :/delete: If true, the file will be deleted after it is processed/I figured out that this statement is not true when some error happens. I found th

Re: Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Done: https://issues.apache.org/jira/browse/CAMEL-7206 Thanks Claus for your fast answers. -- View this message in context: http://camel.465427.n5.nabble.com/Is-it-possible-to-configure-mybatis-component-to-pick-parameters-from-header-tp5747318p5747327.html Sent from the Camel - Users mailing

Re: Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
thing like that and I can let the message body intact. Juan 2014-02-14 12:44 GMT-03:00 Claus Ibsen-2 [via Camel] < ml-node+s465427n5747320...@n5.nabble.com>: > Hi > > You mean to pickup named parameters from headers? > > > On Fri, Feb 14, 2014 at 3:36 PM, Gardella j

Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Hi community, I'm using mybatis component and it seems that it's not possible to configure it to pick parameters from the header. It's useful enable this feature with some options. For example sql component can pick

Is it possible to configure mybatis component to pick parameters from header?

2014-02-14 Thread Gardella juan
Hi community, I'm using mybatis component and it seems that it's not possible to configure it to pick parameters from the header. It's useful enable this feature with some options. For example sql component can pick

Re: camel-spring-batch 2.11.1 breaks previous working routes

2013-08-21 Thread Gardella juan
I've attached "CAMEL-6656-testcase.zip" with a test to reproduce the bug in the ticket. If we use camel 2.11.0 the test works fine. -- View this message in context: http://camel.465427.n5.nabble.com/camel-spring-batch-2-11-1-breaks-previous-working-routes-tp5737426p5737694.html Sent from the Ca

camel-spring-batch 2.11.1 breaks previous working routes

2013-08-16 Thread Gardella juan
Hi all, I've used camel-spring-batch from a while. I recently upgrade from 2.11.0 to 2.11.1 and the route that use camel-spring-batch have failed. I detect that the problem is in 2.11.1 after the execution of the job the headers are cleaned. So I changed my route to log the headers before and afte

Re: zip file best practices

2013-07-05 Thread Gardella juan
Hello Willieem, It seems there is a problem with the ZipSplitter that you did. I had added a test "ZipProcessRouteBuilderIT" to reproduce the error at https://issues.apache.org/jira/browse/CAMEL-6139. If you use my ZipSplitter the test works. Thanks, Juan -- View this message in context: htt

Re: Enable to use default scope beans

2013-04-10 Thread Gardella juan
has, and find the "foo" method to call. > > You can possible google about "default" package visibility in Java, etc > such as: > > http://stackoverflow.com/questions/714791/what-is-the-default-scope-of-a-method-in-java > > > > > > On Wed, Apr 3, 2

Enable to use default scope beans

2013-04-03 Thread Gardella juan
Hi, For example I have a bean: @Component("myBean") public class MyBean{ public void foo(){ } } And the route: from("...").to("bean:myBean") And works, but if I change the visibilty of MyBean to package fails: @Component("myBean") class MyBean{ public void foo(){ } } The route fa

Re: Camel SQL component - How configure sql component to doesn't try read the body?

2013-03-20 Thread Gardella juan
http://camel.apache.org/contributing.html > > And patches is of course welcome. > > > On Tue, Mar 19, 2013 at 6:31 PM, Gardella juan > <[hidden email] <http://user/SendEmail.jtp?type=node&node=5729482&i=0>> > wrote: > > > Hi, > > > > I have a

Camel SQL component - How configure sql component to doesn't try read the body?

2013-03-19 Thread Gardella juan
Hi, I have a route that is processing a file. So the body is an input stream. I want in some part of the route do two sequential operations. So I am using something like that: from("direct:foo").multicast().to( "sql:truncate table X", "direct:continue"); I

Spel expressions don't compile as says in the documentation - Is it a bug?

2013-03-13 Thread Gardella juan
Hi, I'm using camel 2.10.4 and spring 3.2.1.RELEASE versions. If I add this two expressions to my route: DOESN'T COMPILE: from("direct:example").setBody(spel("Hello #{request.body}! What a beautiful #{request.headers['dayOrNight']}")).to("mock:result"); COMPILE: from("direct:foo").filter

Re: Dinamyc SQL with arguments

2013-03-13 Thread Gardella juan
Thanks hekonsek for create the jira! I will follow this jira. @Chris Odom: Thanks for the suggestion, I did in this way. But I think it is a better option support dinamyc sql query out of box in camel. Best regards, Juan -- View this message in context: http://camel.465427.n5.nabble.com/Dina

Dinamyc SQL with arguments

2013-03-12 Thread Gardella juan
Hi, I want to send an arbitrary SQL with arguments, like that: "insert into foo (col1,col2) values (?,?)" The SQL is dinamyc, so I can't harcoded in the SQL component. I've used jdbc component but now I want to solve SQL Injection, so I want to pass arguments as list/array. The arguments has to

Re: zip file best practices

2013-03-04 Thread Gardella juan
t; to create and submit patches to Apache Camel > http://camel.apache.org/contributing.html > > > On Mon, Mar 4, 2013 at 3:05 PM, Gardella juan > <[hidden email] <http://user/SendEmail.jtp?type=node&node=5728457&i=0>> > wrote: > > > The source code has a

Bug in bean-binding? Don't remove last quote

2013-02-08 Thread Gardella juan
Hi all, In the page http://camel.apache.org/bean-binding.html said: "In the example above, we invoke the echo method with two parameters. The first has the content 'World' (without quotes), and the 2nd has the value of 5." But I put in a route: .to("bean:handler?method=log('I1000')"); And in t