CORS support in servlet

2016-03-09 Thread Patrick Valsecchi
Hi, I'm trying to have CORS working with with the REST DSL (I'm actually using XML) in a servlet context (to run under tomcat). I've put enableCORS="true" at the level and in all my and elements. That seems to work fine as long as I only do GET and PUT queries. The problem is that web clients

Re: Set Header using xpath

2016-03-09 Thread krish_p
Hi Claus, My XML has a namespace without a prefix. Is that causing the issue then? -- View this message in context: http://camel.465427.n5.nabble.com/Set-Header-using-xpath-tp5778202p5778761.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Unexpected shutdow of the Camel context

2016-03-09 Thread ursouca
Dears, I think I found the culprit. I did not mentioned that in the same application,we are using also Spring-Batch runtime (through JSR API). The Spring context of the Spring-Batch is inheriting of a common shared context to allow the usage of some bean in the jobs definition. But since we are us

Re: Camel XMLRPC dateTime.iso8601 format.

2016-03-09 Thread Gregoire Autric
hi, Nunzio which camel component has been involved ? ( http://camel.apache.org/xmlrpc.html ?) Could you copy/paste your error too ? by advance, thx Best Regards, Bien à vous, どうぞお元気で, Greg AUTRIC - JBoss Middleware Consultant - On Tue, Mar 8

Re: bean parameter binding

2016-03-09 Thread Gregoire Autric
Hi Minh, it is be an improvement that Camel could implements Coud you please rise a JIRA for it ? Camel team will check it too. https://issues.apache.org/jira/browse/CAMEL thx for this topic Best Regards, Bien à vous, どうぞお元気で, Greg AUTRIC

R: Camel XMLRPC dateTime.iso8601 format.

2016-03-09 Thread Palmentieri Nunzio
Hi Gregoire, the Camel component is apache-camel-2.16.2 The error is got when reading the following response from server: _ startDate 20160301T12:00:00+ responseCode

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: http://camel.465427.n5.nabble.com/Limit-swagger-API-tp5778

Re: Limit swagger API

2016-03-09 Thread Claus Ibsen
Whats the use-case for this? On Wed, Mar 9, 2016 at 3:46 PM, fabrizio.spataro wrote: > 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 > > > > >

Re: Camel XMLRPC dateTime.iso8601 format.

2016-03-09 Thread Claus Ibsen
You get a NPE in Java itself. Wonder maybe you can upgrade Java? Or try to google / search for that stacktrace error to see what you can find. It seems like a timezone missing / not known or something. It can also be related to what the locale is setup on that OS you use to run the app. On Wed,

Re: Limit swagger API

2016-03-09 Thread Matt Sicker
Unreleased APIs, internal APIs, backwards compatibility APIs, maybe a couple other use cases. On 9 March 2016 at 08:58, Claus Ibsen wrote: > Whats the use-case for this? > > > > On Wed, Mar 9, 2016 at 3:46 PM, fabrizio.spataro > wrote: > > Hello, > > > > To hide part of my API documentation, It

CXF cross cutting concerns

2016-03-09 Thread Ranx
I have a client who wants to use deployable microservice bundles with REST/SOAP APIs. Not a problem of course as it works very well. The issue is that I'm getting a lot of boilerplate replication across the project which is only getting to get bigger and more difficult to manage with time. This

Re: Limit swagger API

2016-03-09 Thread Claus Ibsen
Yeah that sounds like good use-cases. Welcome to log a JIRA On Wed, Mar 9, 2016 at 4:07 PM, Matt Sicker wrote: > Unreleased APIs, internal APIs, backwards compatibility APIs, maybe a > couple other use cases. > > On 9 March 2016 at 08:58, Claus Ibsen wrote: > >> Whats the use-case for this? >>

Re: Cross cutting concern for microservices

2016-03-09 Thread Ranx
I'm going to bump this as I'm getting farther in the project now and this sort of replication is getting to be more critical. -- View this message in context: http://camel.465427.n5.nabble.com/Cross-cutting-concern-for-microservices-tp5776981p5778800.html Sent from the Camel - Users mailing lis

Camel dozer component unable to map custom function on field with null value

2016-03-09 Thread Narsi Nallamilli
I am working on a camel project and user camel dozer for transformation(json to json). However if source json's field is null it is not getting mapped to targer json's field. So I though to map the field with custom function to check if the field is null, if so return "null" value to map.

Re: Camel dozer component unable to map custom function on field with null value

2016-03-09 Thread Brad Johnson
I can't speak directly to JSON to JSON mapping as I use Dozer for mapping Java/XML/JSON with POJOs but I've run into a similar problem and the solution may be somewhat similar. Where I've run into it is if there aren't getters/setter pairs on generated objects Dozer will sometimes access a null ob

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.

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.

Camel reference property files with and without OSGI

2016-03-09 Thread souciance
Hi, I understand that if you deploy our Camel project to an OSGI environment like Karaf you can simply write: http://camel.apache.org/schema/blueprint"; id="INT001_SelfServiceMachine" useMDCLogging="true"> And this works when the project is deployed to Karaf an

file trigger processing lots of files

2016-03-09 Thread jamesburn
Hello I want to have the processing of a batch of 1000s of files triggered by the arrival of a header file. We're working with Spring/Blueprint DSL - I'm no Java expert. I spent the morning playing with PollEnrich, but now see that this will only pickup the first file in the batch. Digging de

Re: CAMEL 2.16.2 and Swagger

2016-03-09 Thread Gerald Mixa
Hi Claus, I updated the swagger library to 1.5.7 which seems to be the latest version in camel 2.16.2. Unfortunately this did not change things. The camel example still shows up that selection box even with this updated dependency. Greetings Gerald Von meinem iPhone gesendet > Am 08.03.201

Re: Camel reference property files with and without OSGI

2016-03-09 Thread Ranx
What version are you using? You shouldn't have to replicate the definition into Camel context like that anymore. http://localhost"; /> You can use the default properties for your testing and ove

Re: Camel reference property files with and without OSGI

2016-03-09 Thread souciance
Hi, I am using 2.16.1 and Karaf 4.0.2. I am not sure if I understand you correctly. Do you mean that I need to define default properties for every single property in the blueprint during development and testing, and then when the bundle is deployed, these values are overridden by the cfg file as

Re: camel-swagger-java not parse property

2016-03-09 Thread Claus Ibsen
Hi Yeah we should output the resolved values. I logged a ticket https://issues.apache.org/jira/browse/CAMEL-9687 On Tue, Mar 8, 2016 at 11:35 AM, fabrizio.spataro wrote: > Hello. > > There is a bug into swagger JSON file. > > I am using follow rest DSL (xml) with camel-2.16.3-SNAPSHOT > > >

Re: file trigger processing lots of files

2016-03-09 Thread Quinn Stevenson
I think you could accomplish this with two routes. The first route would auto-start, and would watch for the trigger file. When the trigger file arrives, the route would start a second route using the control-bus EIP (http://camel.apache.org/controlbus.html

Unable to Install the Camel Websocket Component

2016-03-09 Thread Rizon
I'm trying to install the camel-websocket v2.16.2 into Karaf 4.0.4 and it just hangs. Anyone else experiencing this issue? Any workarounds? -- View this message in context: http://camel.465427.n5.nabble.com/Unable-to-Install-the-Camel-Websocket-Component-tp5778818.html Sent from the Camel - U

Re: bean parameter binding

2016-03-09 Thread Minh Tran
Thanks for the quick response, I’ve created jira https://issues.apache.org/jira/browse/CAMEL-9690 > On 9 Mar 2016, at 9:49 PM, Gregoire Autric wrote: > > Hi Minh, > > it is be an improvement that Camel could implements > Coud you please rise

Camel Rest DSL issue with fuse fabric

2016-03-09 Thread GaganT
Hi, I am doing a poc to expose rest ful services using camel rest dsl and deploying them in a container on a fuse fabric profile. The example is based out of camel-example-servlet-rest-blueprint project. my bluprint file is: blueprint.xml

Bug in RestSwaggerReader.appendModels() - need confirmation

2016-03-09 Thread tomb50
Hi, I have encountered an issue relating to the Swagger component of Camel, I believe it is related to the RestModelConvertor that is used when creating the Swagger model from the Rest API model from Camel. When a model that is directly referenced (e.g. an out-type) is added to the Swagger.defini