Re: camel+quartz schedulers

2012-07-13 Thread Sudhakar.kaithepalli
Hi Good Morning... Thanks for ur response Pontus... But i don't want to interact with Active-MQ in between camel route and FTP server. And on more thing How can i get no. of files in FTP server through camel route? plz tell me its very urgent to me.. Thanks&Regards.. Sudhakar Kai

Re: Testing Restlet endpoints after refactoring to using servlet container

2012-07-13 Thread Claus Ibsen
Hi Maybe if its/was possible to setup the host and port on the RestletComponent, then the endpoint can fallback and use those options if non specified in the uri. Then for production they can be / to indicate servlet, and for unit test, you can set it up to a localhost 8080 or whatever. On Fri,

Re: proxy

2012-07-13 Thread Claus Ibsen
On Fri, Jul 13, 2012 at 10:22 PM, BL wrote: > Hi, > > I need to create a Camel proxy such that a http request is fronted by a soap > webservice exposed by Camel. > The webservice arguments has to be extracted from the soap webservice and > added as request parameters to the http request. > My plan

Re: Can I cancel a Route suspension.

2012-07-13 Thread Claus Ibsen
On Fri, Jul 13, 2012 at 5:53 PM, smadarapu wrote: > Thanks for the response, that what i thought. > > The reason... > > I have a route that is listening to a folder for a particular file. As soon > as it finds the file the route starts, takes the contents of the file and > produces a bunch of even

Re: ProducerTemplate

2012-07-13 Thread Claus Ibsen
On Fri, Jul 13, 2012 at 6:04 PM, ceclabaugh wrote: > Is there a non-test example of this? Does the xml context file for any route > need to be named after its producer? > No you can name the XML file anything you like. That naming scheme is just a spring test pattern. See here http://camel.apach

Re: Exception handling in Camel Routes.

2012-07-13 Thread smadarapu
Can you please elaborate "A route can have a N+ route scoped onException's. That is possible." In my case when I had the onException on the route, whatever the code i put for onException got executed immediately after a message arrived to that route (without an actual exception), and not when that

Re: Can I cancel a Route suspension.

2012-07-13 Thread smadarapu
Thanks for the response, that what i thought. The reason... I have a route that is listening to a folder for a particular file. As soon as it finds the file the route starts, takes the contents of the file and produces a bunch of events that are consumed and processed by other routes. The job of

proxy

2012-07-13 Thread BL
Hi, I need to create a Camel proxy such that a http request is fronted by a soap webservice exposed by Camel. The webservice arguments has to be extracted from the soap webservice and added as request parameters to the http request. My plan is to created the webservice via cxf to expose a webservi

Re: problem with camel-http routing with spring dsl

2012-07-13 Thread magic.coder
Worked like a charm.. Thanks a lot Mr. Claus Ibsen. Regards, magic.coder -- View this message in context: http://camel.465427.n5.nabble.com/problem-with-camel-http-routing-with-spring-dsl-tp5715852p5716021.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Splitting, processing and aggregating a list

2012-07-13 Thread Vincent Nonnenmacher
On Fri, Jul 13, 2012 at 5:49 PM, Claus Ibsen wrote: > On Fri, Jul 13, 2012 at 5:45 PM, ben1729 > wrote: > > Claus to the rescue! Thank you very much, works like a charm. Nice book > by > > the way. > > > > Ah if you got the book, then see chapter 8, section 8.3.2 > > guess you made a small type

Re: ProducerTemplate

2012-07-13 Thread ceclabaugh
Is there a non-test example of this? Does the xml context file for any route need to be named after its producer? -- View this message in context: http://camel.465427.n5.nabble.com/ProducerTemplate-tp4552750p5716019.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Splitting, processing and aggregating a list

2012-07-13 Thread Claus Ibsen
On Fri, Jul 13, 2012 at 5:45 PM, ben1729 wrote: > Claus to the rescue! Thank you very much, works like a charm. Nice book by > the way. > Ah if you got the book, then see chapter 8, section 8.3.2 > Ben > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Splitting-processi

Re: Splitting, processing and aggregating a list

2012-07-13 Thread ben1729
Claus to the rescue! Thank you very much, works like a charm. Nice book by the way. Ben -- View this message in context: http://camel.465427.n5.nabble.com/Splitting-processing-and-aggregating-a-list-tp5716013p5716015.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Splitting, processing and aggregating a list

2012-07-13 Thread Claus Ibsen
On Fri, Jul 13, 2012 at 5:33 PM, ben1729 wrote: > Hi all, > > I would like to take a message containing a list of objects, split the list > into it's component objects, process them in parallel, aggregate the > modified objects back into a list. > > I am using camel 2.8.0. > > From what I can see

Splitting, processing and aggregating a list

2012-07-13 Thread ben1729
Hi all, I would like to take a message containing a list of objects, split the list into it's component objects, process them in parallel, aggregate the modified objects back into a list. I am using camel 2.8.0. >From what I can see I need to use a route in the following form: from("jms:queue:f

Re: camel+quartz schedulers

2012-07-13 Thread Pontus Ullgren
Ok then I misunderstood your question. In your case a PollingConsumerPollStrategy [1] might be more suitable. But I guess it could also be achieved by using a route policy that starts the FTP route once the correct number of files are present. [1] http://camel.apache.org/polling-consumer.html //

Re: problem with camel-http routing with spring dsl

2012-07-13 Thread Claus Ibsen
On Wed, Jul 11, 2012 at 12:01 PM, magic.coder wrote: > Hi I am trying to call a webservice using camel-http component. > > When I write my routing logic using java-dsl, it just works fine and I can > retrieve the soap response in String format as out message body. However, > when I do the same usi

Re: org.apache.camel.util.ObjectHelper.wrapCamelExecutionException

2012-07-13 Thread Claus Ibsen
Hi I am not sure what is going on, and the causes stacktrace. You would need to dig a bit more to grab that. But if you send serialized java objects over remote JMS then make sure you have the same classes on both sides. And its a good idea to have serialVerisionUID in the classes so they are view

Re: camel+quartz schedulers

2012-07-13 Thread Sudhakar.kaithepalli
HI. Actually my requirement is i've a sheduler table in DB.in that end-user store frequency as 10 files, every time we need to check with FTP during camel route if FTP contain >=10 files then only we can start actual task.. This is my requirement.. Thanks and Regards.

Re: camel+quartz schedulers

2012-07-13 Thread Sudhakar.kaithepalli
Hi Pontus ... ThankQ for ur reply Pontus .. - Sudhakar Kaithepalli -- View this message in context: http://camel.465427.n5.nabble.com/camel-quartz-schedulers-tp5715992p5715999.html Sent from the Camel - Users mailing list archive at Nabble.com.

Testing Restlet endpoints after refactoring to using servlet container

2012-07-13 Thread Magnus Palmér
After following the "Using the Restlet servlet within a webapp" documentation at http://camel.apache.org/restlet.html I refactored my Restlet endpoints by removing protocol, host and port. So from "restlet:http://host:port/path/{id}"; to "restlet:/path/{id}". This works great when running in a serv

Re: soap over jms

2012-07-13 Thread Christian Schneider
Hi Bhushan, we have such an example for the Talend ESB. The example works as well in pure camel and cxf: https://github.com/Talend/tesb-rt-se/tree/master/examples/camel/jaxws-jms Christian Am 13.07.2012 08:02, schrieb bhushand: Hi Willem Thanks for reply. We will update for newer version

Re: camel+quartz schedulers

2012-07-13 Thread Pontus Ullgren
Hi, For the frequency I belive you can use the Throttler pattern. http://camel.apache.org/throttler.html For volume you can write a RoutePolicy to suspend/resume the routes when certain condtitions met. See http://camel.apache.org/routepolicy.html and http://camel.apache.org/route-throttling-exam

camel+quartz schedulers

2012-07-13 Thread Sudhakar.kaithepalli
Hi, In my project, i used camel and quartz for scheduling. For time base its working fine.But for frequency and volume based scheduling i don't have any idea.Please Help me regarding camel route creation for either for frequency based or for volume based. Here frequency means no. of files and vol