simple language nullsafe expression fails on empty array

2016-10-13 Thread dmitriyC300
I may have found a limitation w/ simple language on the 1st index of an empty array with a nullsafe expression. Making sure list.size() > 0 in BeanExpression line 384 should address this use case. I'm happy to submit a pull request with a tweak & unit test case if that's helpful. public void

Re: ognl issue w/ list expression & spring boot?

2016-10-13 Thread dmitriyC300
Created CAMEL-10385 & corresponding pull request -- View this message in context: http://camel.465427.n5.nabble.com/ognl-issue-w-list-expression-spring-boot-tp5788692p5788714.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CxfEndpoint soap client usernametoken authentication

2016-10-12 Thread dmitriyC300
There is a section on http://cxf.apache.org/docs/ws-security.html that defines how to handle plain text username/password. 1. Add WSS4JOutInterceptor to you CXF endpoint out interceptors with following configuration options: props.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);

Re: ognl issue w/ list expression & spring boot?

2016-10-12 Thread dmitriyC300
will do -- View this message in context: http://camel.465427.n5.nabble.com/ognl-issue-w-list-expression-spring-boot-tp5788692p5788696.html Sent from the Camel - Users mailing list archive at Nabble.com.

ognl issue w/ list expression & spring boot?

2016-10-12 Thread dmitriyC300
It appears that there may be a conflict running simple expression w/ List under spring boot. SpringTypeConverter is registered as a fallback converter which gets picked up during ognl while attempting to convert list -> map causing an exception instead of a null response that is expected. It is h

Rest DSL & CORS

2016-08-15 Thread dmitriyC300
Hi Guys, Is there a way to dynamically set/reset Access-Control-Allow-Origin response header based on incoming request's Origin header? It looks like static setting can be applied via rest configuration, but I couldn't figure out how to do it dynamically apart from managing response CORS headers d

Re: Dynamically continue route on exception

2016-05-24 Thread dmitriyC300
duh - not sure how i missed it. thanks! -- View this message in context: http://camel.465427.n5.nabble.com/Dynamically-continue-route-on-exception-tp5783038p5783050.html Sent from the Camel - Users mailing list archive at Nabble.com.

Dynamically continue route on exception

2016-05-24 Thread dmitriyC300
Hi Guys, I have a use case where I'd like to have route proceed on exception. I know we can use continued at the time we configure the route. But what is the best way to instruct the route to proceed on exception dynamically at runtime? Is try/catch the only option at this time? static: onExcept

Re: How to set username password in custom SOAP header from cxf endpoint and camel route to call external webservice

2016-05-24 Thread dmitriyC300
You could do that via cxf out interceptor. You would need to create an intercepter that will construct your soap header and register it with your client(see camel cxf docs). When your client sends a request, interceptor will inject the soap header based on defined instructions. Example: public c