Re: How to insert Date String as date in MongoDB

2016-03-04 Thread gramanero
Thank you for the response and information. I believe I tried what is recommended in the link that you provided. Below is a copy from the Logs via the Karaf console. I hope the formatting is not too terrible. I can try and provide it another way if necessary. Pretty much the same result as I was

CAMEL 2.16.2 and Swagger

2016-03-04 Thread Gerald Mixa
Hi, i have just tried out the camel swagger plugin example which is shipped with 2.16. So far it seems to work. But when i go to the use case which is offered by http://localhost/#!/user/get_user_id to retrieve specific info for a user who is ghiven by its id swagger just offers a selection box

Re: Globally set ActiveMQ configuations in Karaf / OSGi or share the connection factory

2016-03-04 Thread Joseph Kampf
We put a blueprint file in the karaf/deploy directory to create the JNDI entry of the JMS Connection Factory. http://www.osgi.org/xmlns/blueprint/v1.0.0;> Then we import a common spring doc from a common component.

Globally set ActiveMQ configuations in Karaf / OSGi or share the connection factory

2016-03-04 Thread Thomas Weinschenk
Hi folks, Is there a way to set configuration of the AMQ component globally? So far I have to include the configurations in every blueprint xml or publish the JmsConfiguration as an OSGi service and then include the reference in every blueprint. This is even more annoying because the

Re: Polling http endpoints

2016-03-04 Thread Quinn Stevenson
The “direct:await-import-complete” calling itself makes me a little nervous - the call stack could get pretty deep if it has to wait very long. Could you use the loop DSL (http://camel.apache.org/loop.html )? > On Mar 3, 2016, at 11:44 AM, jelmer

Re: Doing bean inject in camel test

2016-03-04 Thread Quinn Stevenson
It looks like you’re trying to inject a bean endpoint (from the URI) into a mock endpoint - the types don’t line up. > On Mar 3, 2016, at 10:50 AM, D wrote: > > I have a camel app which look something like below:- > > public class OrderMainApp { >public static

Zookeeper RoutePolicy implementation in File endpoint

2016-03-04 Thread ravishankarhassain
Basically I am trying to achieve load balancing in consuming files using file endpoint. I have gone through some use case which uses zookeeper route policy to control the master election of camel routes. I am planning to apply this zookeperRoutePolicy to my camel routes which has file end points

Re: null safe operator on exceptions

2016-03-04 Thread Claus Ibsen
Hi The method is called getStackTrace(), so you should do ${exception?.stackTrace} And the simple function "exception.stackTrace" is not using OGNL but a special function that also converts the stracktrace to a string. If you call getStackTrace on an exception it returns an array of stack

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.

null safe operator on exceptions

2016-03-04 Thread Hans Orbaan
Hi all, In the simple language you can use the null safe operator (?.) to avoid null pointer exceptions. This does not work for the ${exception.stacktrace} like: ${exception?.stacktrace}. .log(LoggingLevel.WARN, "${exception?.stacktrace}") 2016-03-04 09:04:46,969 [main]