Doing bean inject in camel test

2016-03-03 Thread D
I have a camel app which look something like below:- public class OrderMainApp { public static void main(String... args) throws Exception { OrderMainApp orderMainApp = new OrderMainApp(); DefaultCamelContext camelContext = new DefaultCamelContext(); ProducerTemplate producer =

how to invoke a third party webservice without wsdl

2016-03-03 Thread amitmahesh
We have to invoke a third party webservice but we donot have access to wsdl, all we know is endpoint address and input and output xml format. we were able to invoke it from SOAP UI but struggling to configure as a cxf endpoint so as to invoke from a camel route. From searching the net we came

Doing camel-test with a bean in the route

2016-03-03 Thread Debraj Manna
Hi, This is my first post in the camel user group. Some how my first post did not go through the mailing list. I hope some one can point to me the right direction. I am trying to write a test for a camel app which looks something like below:- public class OrderMainApp { public static void

Re: Polling http endpoints

2016-03-03 Thread jelmer
Since no one answered I came up with this : from("file:/Users/jkuperus/foo") .process(ToMultiPartRequestProcessor) .setHeader(Exchange.HTTP_METHOD, constant(HttpMethods.POST)) .setHeader(Exchange.CONTENT_TYPE, constant("multipart/form-data"))

Re: How to insert Date String as date in MongoDB

2016-03-03 Thread Raul Kripalani
MongoDB uses a special representation of JSON they call BSON. According to their docs, timestamps should be represented with the $timestamp token, along with 't' and 'i' portions for them to be interpreted correctly by the drivers:

Re: camel-sql Query with params list

2016-03-03 Thread Claus Ibsen
Hi Yeah IN is not supported. Wonder what a good syntax for that would look like, as you would need to differentiate the values should be enclosed in quotes or not, eg strings vs numbers etc. We have also previously talked about being able to specify the SQL type to use for the parameters. So if

Re: Zookeeper component RoutePolicy

2016-03-03 Thread ravishankarhassain
Even I am trying to achieve the same thing If I have 3 active routes (polling to the same file path) implemented using zookeeper route policy, default behavior would be like all the 3 routes will poll the same file path and will result in race condition to process the files, which ever route

Re: How to insert Date String as date in MongoDB

2016-03-03 Thread gramanero
I would be interested in knowing the answer on how to do this as well. I posted in a different thread and the datatype I am trying to do this with is the ISODate built-in mongo type. I am using Spring DSL as well. Thanks! -- View this message in context:

camel-jcifs SMB issues

2016-03-03 Thread Hans Orbaan
Hi all, I use camel 2.16.2 with camel-jcifs 2.14.1 (There is no newer version although the documentation says there should be: https://camel.apache.org/jcifs.html). This causes a lot of issues with the smb:// protocol. Work around is to have the shares mounted and use the file:// protocol,

How to throw an exception from camel route

2016-03-03 Thread ravivadgaonkar
I am calling a camel route from java class using a proxy. I wanted the camel route to throw an exception on certain condition (in my case when it hits 404 response). The java class needs to be capable for catching this exception and and process further. Please let me know how to achieve this. I

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: Caching POJOs (no serializable and no InputStream)

2016-03-03 Thread ganga_camel
Hi, By having the pojo implement Serializable, I was successfully able to add pojo's into cache and retrieve them back without any type conversion. -Ganga -- View this message in context:

Re: Caching POJOs (no serializable and no InputStream)

2016-03-03 Thread ganga_camel
Hi, Was there a patch implemented for this issue. I also have a case where I need to add Pojo Objects into Cache and am not able to do so unless I convert the Pojo to a String If no fix was implemented, is there a work around to achieve this? Appreciate response. -- View this message in