Re: Customize the Http Response Code for REST Service

2016-03-25 Thread fabrizio.spataro
Hello, I had same problem and i resolve it using "onException tag" to intercept validation error and return another http response code Example DSL: java.your.exception 403 true . -- View this message in context:

Re: Issue with dynamic uri

2016-03-25 Thread fabrizio.spataro
Hello, abstractly dynamic uri can be do it using recipientList + simple leanguage example here: http://camel.apache.org/recipient-list.html -- View this message in context: http://camel.465427.n5.nabble.com/Issue-with-dynamic-uri-tp5779689p5779690.html Sent from the Camel - Users mailing

Re: camel-maven-plugin executable jar, MANIFEST entry is missing

2016-03-24 Thread fabrizio.spataro
ok when 2.16.3 is released? :-) -- View this message in context: http://camel.465427.n5.nabble.com/camel-maven-plugin-executable-jar-MANIFEST-entry-is-missing-tp5779625p5779663.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-maven-plugin executable jar, MANIFEST entry is missing

2016-03-24 Thread fabrizio.spataro
Yes!!! I am using pom same pom.xml with all camel dependencies for my project!!!... If i change camel version from 2.16.2 to 2.16.3-SNAPSHOT maven jar plugin failure! -- View this message in context:

Re: camel-maven-plugin executable jar, MANIFEST entry is missing

2016-03-24 Thread fabrizio.spataro
Hello Claus, I cannot insert camel-spring manually because it is a maven plugin work! I repeat this concept: with camel 2.16.2 it is all ok!!! Is it a bug of 2.16.3 version? According follow source code, maven jar plugin is able to do it: org.apache.maven.plugins maven-jar-plugin

camel-maven-plugin executable jar, MANIFEST entry is missing

2016-03-24 Thread fabrizio.spataro
Hello, i am using camel-maven-plugin with camel version 2.16.3-SNAPSHOT, but my executable jar don't have enough MANIFEST 's entries (for example camel-spring is missing!!) With camel 2.16.2 it is all ok! It's a bug? Output: $ java -jar myFantasticCamelApplication.jar Exception in thread

Limit of Error handling in Camel

2016-03-15 Thread fabrizio.spataro
Hello, i have a modular apache camel project (camel 2.15.5), with multiple camel context xml file. My project package's steps are: Step 1. maven copy *.xml camel context into a common directory META-INF/spring Step 2. maven camel:run Step 3. Into main camel-context i am declaring all

Re: camel-swagger-java not parse property

2016-03-14 Thread fabrizio.spataro
Hello, The jira is resolved end I am using camel-2.16.3-SNAPSHOT but i'm still same bug Is it ok? what am I doing wrong? -- View this message in context: http://camel.465427.n5.nabble.com/camel-swagger-java-not-parse-property-tp5778734p5779008.html Sent from the Camel - Users mailing list

Re: camel-swagger-java not parse property

2016-03-09 Thread fabrizio.spataro
+1 -- View this message in context: http://camel.465427.n5.nabble.com/camel-swagger-java-not-parse-property-tp5778734p5778805.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Limit swagger API

2016-03-09 Thread fabrizio.spataro
-- View this message in context: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778791p5778804.html Sent from the Camel - Users mailing list archive at Nabble.com.

Limit swagger API

2016-03-09 Thread fabrizio.spataro
Hello, To hide part of my API documentation, It could be nice to have a swagger switch off mode. I am thinking the following code: off Best regards -- View this message in context:

camel-swagger-java not parse property

2016-03-08 Thread fabrizio.spataro
Hello. There is a bug into swagger JSON file. I am using follow rest DSL (xml) with camel-2.16.3-SNAPSHOT ... Output Swagger JSON: { "swagger" : "2.0", "info" : { "version" : "1.0.0", "title" : "MY API" }, "host" : "0.0.0.0:8080", "tags" : [ { "name" :

Re: camel-sql Query with params list

2016-03-04 Thread fabrizio.spataro
I expected your answer. Claus give me some clues. I try to develop it, and then I'll send -- View this message in context: http://camel.465427.n5.nabble.com/camel-sql-Query-with-params-list-tp5778544p5778582.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-sql Query with params list

2016-03-03 Thread fabrizio.spataro
hello, i would execute this query: But i am thinking it is not supported yet. How to do it? Tnkx, fabrizio -- View this message in context: http://camel.465427.n5.nabble.com/camel-sql-Query-with-params-list-tp5778544.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Splitting within transactions

2015-11-19 Thread fabrizio.spataro
Hello. I have a similar problem. How to resolve it? -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-within-transactions-tp5719539p5774114.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel 2.16 vs Jetty9 vs camel-websocket

2015-11-10 Thread fabrizio.spataro
Hello, i would use camel 2.16 + jetty9 + camel-websocket but this component depends from jetty8. How can i do? i am trying force to use jetty9 from maven without success. -- View this message in context:

Re: Upgrade to 2.16.0

2015-10-13 Thread fabrizio.spataro
Hello. This is a big problem because my project contains more than 100 routes. -- View this message in context: http://camel.465427.n5.nabble.com/Upgrade-to-2-16-0-tp5772570p5772597.html Sent from the Camel - Users mailing list archive at Nabble.com.

Interceptor into external file

2015-09-10 Thread fabrizio.spataro
Hello, i would use same interceptor (XML Spring implementation) into my different projects. Can i reference an interceptor like "routeContextRef" tag or "restContextRef" tag? -- View this message in context: http://camel.465427.n5.nabble.com/Interceptor-into-external-file-tp5771400.html

Re: Interceptor into external file

2015-09-10 Thread fabrizio.spataro
Camel interceptor: http://camel.apache.org/schema/spring; errorHandlerRef="deadLetterErrorHandler"> ... ANOTHER CODE .. ... ANOTHER CODE .. ... ANOTHER CODE ..

Re: Interceptor into external file

2015-09-10 Thread fabrizio.spataro
Ok thanks, my (temporary?) implementation is: FILE 1: ... MY CODE .. ... MY CODE .. ... MY CODE .. ... MY CODE ..

Local XSD Schema into CamelContext File

2015-05-22 Thread fabrizio.spataro
Hello everyone, In my camel-context file i would use a local XSD schema. Today my camel-context start with: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:camel=http://camel.apache.org/schema/spring;

Re: [SQL Component] Transaction manager force commit

2015-02-26 Thread fabrizio.spataro
Hello everyone, To force commit you just typing *to uri=sql:commit /* King Regards! -- View this message in context: http://camel.465427.n5.nabble.com/SQL-Component-Transaction-manager-force-commit-tp5762948p5763193.html Sent from the Camel - Users mailing list archive at Nabble.com.

[SQL Component] Transaction manager force commit

2015-02-19 Thread fabrizio.spataro
Hello, i am using camel 2.14.2-SNAPSHOT. Into my transacted route are using this settings: bean id=transactionManager class=org.springframework.jdbc.datasource.DataSourceTransactionManager property name=dataSource ref=mysql/property /bean bean id=PROPAGATION_REQUIRES_NEW

Re: Javascript DSL, response is not defined

2015-02-17 Thread fabrizio.spataro
So, I am using the code according to this page ( http://camel.apache.org/javascript.html ) -- View this message in context: http://camel.465427.n5.nabble.com/Javascript-DSL-response-is-not-defined-tp5762839p5762844.html Sent from the Camel - Users mailing list archive at Nabble.com.

Javascript DSL, response is not defined

2015-02-17 Thread fabrizio.spataro
Hello everyone. I am using camel 2.14.2-SNAPSHOT and i am trying to access object *response* into my code: Can you help me? Spring DSL: transform javaScript var a = request; // OK var b = request.body; // OK var c = response; //FAIL

Re: [Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers

2015-02-10 Thread fabrizio.spataro
Hello, i am using batch value. This seems to work but i lost transactional functionality. So.. i am creating the issue into JIRA My settings are: bean id=mysql class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName value=${mysql.driver}

Re: [Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers

2015-02-10 Thread fabrizio.spataro
Thanks to resolve the issue: https://issues.apache.org/jira/browse/CAMEL-8329 I am testing now! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-SQL-CamelSqlRetrieveGeneratedKeys-attribute-delete-all-headers-tp5762512p5762544.html Sent from the Camel - Users mailing

[Camel SQL] CamelSqlRetrieveGeneratedKeys attribute delete all headers

2015-02-09 Thread fabrizio.spataro
Hello everyone, I am using Camel (2.14.1) SQL component, with *CamelSqlRetrieveGeneratedKeys=true*. After an insert operation i have a correct CamelSqlGeneratedKeyRows value but *I am lost all my previous header params.* Is it a bug? There is any param to preserve my headers? Tnkx -- View

Re: [Jetty] Change request header size to jetty http component

2015-02-02 Thread fabrizio.spataro
I am using camel 2.14.1 and Rest DSL -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-Change-request-header-size-to-jetty-http-component-tp5762312p5762313.html Sent from the Camel - Users mailing list archive at Nabble.com.

[Jetty] Change request header size to jetty http component

2015-02-02 Thread fabrizio.spataro
Hello everyone, How to change request header size default values on jetty http component? i am trying follow code without success. Can you help me? thanks bean id=jetty class=org.apache.camel.component.jetty.JettyHttpComponent property name=requestBufferSize value=8192/ property

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-09 Thread fabrizio.spataro
Of course! I never want to use out message but reading example code (posted by Grzegorz Grzybek) i suppose that *CamelSqlGeneratedKeyRows * variable set into it. code: // assertions of the response assertNotNull(out); assertNotNull(out.getOut());

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-09 Thread fabrizio.spataro
Thanks guy! I finally solved my problem King regards! -- View this message in context: http://camel.465427.n5.nabble.com/SQL-COMPONENT-CamelSqlGeneratedKeyRows-has-a-bug-tp5761113p5761529.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: [SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2015-01-08 Thread fabrizio.spataro
Hello, So.. is it a bug? I haven't any information about generated keys (OUT Message is null) this is my code: spring DSL camel:camelContext xmlns=http://camel.apache.org/schema/spring; camel:restConfiguration bindingMode=auto component=jetty host=0.0.0.0 port=8080/

Re: [SQL COMPONENT] mysql transaction

2015-01-08 Thread fabrizio.spataro
Hello, using spring DSL and tag camel:transacted/ i have this error: *org.apache.camel.NoSuchBeanException: No bean could be found in the registry of type: PlatformTransactionManager* So.. i don't have any transactionManager. My connection is a simple mysql connection like: bean

[SQL COMPONENT] mysql transaction

2014-12-29 Thread fabrizio.spataro
Hello, i would use sql component (http://camel.apache.org/sql-component.html) into a transactional scenario. For example: 0) begin 1) insert 2) insert 3) commit I am using mysql. What is the best strategy to do it using camel's component? Tnkx -- View this message in context:

[SQL COMPONENTE] CamelSqlGeneratedKeyRows has a bug?

2014-12-29 Thread fabrizio.spataro
Hello, i am using sql component with CamelSqlRetrieveGeneratedKeys=true but after an insert operation i don't have any CamelSqlGeneratedKeyRows header. Is it a bug? I am using mysql server 5.1. Tnkx -- View this message in context:

Testing REST Service

2014-12-16 Thread fabrizio.spataro
Hello, i am using camel 2.14.1 (snapshot) to aim use newest camel rest component (using REST DSL). I am writing more rest services and i would test it using camel test java class. My main idea is write java class extends CamelTestSupport and use http camel component to invoke my REST services.

Re: Testing REST Service

2014-12-16 Thread fabrizio.spataro
Sure... i can use any rest tool but my idea is create a set of regression test to help me on the future. ps. i am moving to maven central. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Testing-REST-Service-tp5760757p5760764.html Sent from the Camel - Users