Re: How to validate Body Content in Map Object

2016-03-15 Thread Ranx
How do you want to validate that map's contents? Do you want to validate specific fields or key/values? There are a number of options. You could invoke a Java bean or even the Java class you are in if you are using the Java DSL (which it looks like you are.) If you use a POJO you might do

Re: CXF cross cutting concerns

2016-03-15 Thread Ranx
I'll either go with DOSGi or stick with my current mechanism using an OSGi whiteboard and will leave the CXF bus alone for now. I haven't had enough time to evaluate DOSGi yet so can't comment on its suitability for my use but using the registration listener mechanism works well since it lets

Re: camel rest route

2016-03-15 Thread zappee
Hi, Thx. for the reply. As you suggested the solution is use processor. -- View this message in context: http://camel.465427.n5.nabble.com/camel-rest-route-tp5777992p5779126.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Swagger with 2.16.2 and servlet

2016-03-15 Thread Claus Ibsen
There is a bunch of rest and swagger examples here https://github.com/apache/camel/tree/master/examples On Mon, Mar 14, 2016 at 10:44 PM, camel_case wrote: > Was using this example below as a model with version 2.14.1 >

Re: Camel does not delete files on Windows

2016-03-15 Thread Claus Ibsen
If you forget to close a input stream etc then windows will not delete / move the file. So double check your own code that you always close what you open. Also upgrade and try with latest release of Camel to see if it works there. We fix bug all the time. On Tue, Mar 15, 2016 at 12:39 PM,

How to validate Body Content in Map Object

2016-03-15 Thread Michele
Hi everyone, a common requirement in my business is to provide a validation to data read by File. Is there a way to apply a validation on Map java object? My example route is from("file:uri.inbound").unmarshal(customCSVReader).split(body()).to("validate") Thanks in advance Best Regards

Extracting the 'cause' from org.apache.camel.RuntimeCamelException

2016-03-15 Thread Cristiano Costantini
Hello All, I need to throw an "Fault" to a CXF service which is managed via a cxf:bean:endpoint The fault exception is generated in a Bean, but the camel route wrap it in org.apache.camel.RuntimeCamelException and when it is sent back to the initial CXF endpoint it is not marshalled properly as

WebSockets and request parameters

2016-03-15 Thread Deven Phillips
Hi all, We are using WebSockets for some our inter-service communications and I am working to replace some legacy code with some Camel routes, but I am running into a problem of needs some functionality which is not currently present in Camel. The 2 main features I am looking for and I am

Re: Handled on doTry... doCatch not Working as Expected

2016-03-15 Thread Quinn Stevenson
I believe the try/catch/finally DSL disables the normal Camel error handling ( http://camel.apache.org/try-catch-finally.html ). If I understand this correctly, the element in the snippet will not have any effect. I don’t see you logging

How to visit a url through http proxy

2016-03-15 Thread dnvycumt
Hi, I'm new to camel. I try to visit a url through http proxy,like below: https://www.baidu.com?proxyHost=xxx.xxx.xx.xxproxyPort=8080"/> but it seems not working. How to visit a url through http proxy? -- View this message in context:

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: file trigger processing lots of files

2016-03-15 Thread Quinn Stevenson
Yes - please share simplified versions of your routes. I’m sure we can come up with something. > On Mar 15, 2016, at 6:21 AM, jamesburn wrote: > > Hi > > Many thanks for your hints Quinn. > > With some playing, I've got Controlbus to work fairly well. I could have > done

Re: How to insert Date String as date in MongoDB

2016-03-15 Thread gramanero
I did a little more playing around. Discovered and verified a few different things. First, I recall reading somewhere that the type mapping is being cached (I think I read that). So when I played around with the JSON payload being sent in I started to get mixed results and what was previously not

Re: How to insert Date String as date in MongoDB

2016-03-15 Thread gramanero
Thanks for confirming. I tested the logic and while there are no errors, the value of the /time /property is being persisted as /null /in Mongo. I am going to take a look at the converter classes to see if I can figure out how that is possible. Any thoughts? Again, thanks for the help on this!

Issue in retrieving CXF SOAP body from activemq queue

2016-03-15 Thread Pradeep Prabhakaran
Hi All, I am not getting the soap body in my WebService - Implementation class. I have an OSGI bundle which is configured with 1st route from CXF endpoint which receives the SOAP request. The SOAP request is then sent to activemq:queue:MyQueue, with jmsMessageType=text option. Then I have

Use LDAP component to connect to different backend systems

2016-03-15 Thread Kostov, Andreya
Hello, We are using Spring Web 4.2.4 and Apache Camel 2.16.2. We want to create a route which reads data from an Active Directory service. We want to use the Camel LDAP component. Our requirement is that we are able to read from different backend systems, which are configured by the user. The

Re: CXF cross cutting concerns

2016-03-15 Thread Christian Schneider
Changing the already posted busses is not such a good idea. The CXF DOSGi way is to use intents. You can publish a feature as a service and give it a property org.apache.cxf.dosgi.IntentName=myname. In the OSGi service to be exported you can then set the property service.exported.intents to a

Re: file trigger processing lots of files

2016-03-15 Thread jamesburn
Hi Many thanks for your hints Quinn. With some playing, I've got Controlbus to work fairly well. I could have done with using that a year ago! Regarding stopping the second (main processing) route, I was leaning towards using the exchange property CamelBatchComplete as a trigger. However, this

Camel does not delete files on Windows

2016-03-15 Thread jayanta.p
Hi All, As I am using Apache Camel 2.14.2. version for one of my application, one major problem I experienced last few days that file is not deleted by camel after processing even after setting 'delete=true' in the configuration file. Configuration file structure as below -

AmbiguousMethodCallException on evaluating simple expression

2016-03-15 Thread 0x0me
Hi, accessing the properties of an object via simple language yields an org.apache.camel.component.bean.AmbiguousMethodCallException : ---8<--- .transform().simple("ID[${body?.id}] saying ${body?.text}") --->8--- The problem is already known and fixed for abstract classes (see CAMEL-9032) but

Handled on doTry... doCatch not Working as Expected

2016-03-15 Thread artaxerxe
Hello, I have the following camel route snippet: java.lang.Throwable false a value ${exception.stacktrace} ${header.some.check.value} == null another value This is