Re: print a PDF with camel-printer

2012-09-20 Thread Willem jiang
I just committed the patch[1] of it into the trunk. Please check out the camel-2.11-SNAPSHOT to verify the patch. [1]http://svn.apache.org/viewvc?rev=1387889&view=rev -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: h

Com between beans

2012-09-20 Thread kikou1984
Hi, I have a little problem, I do not know how to implement this idea. I explained the idea. I have this bean: .bean(EclatCCTIBean.class,"eclatCCTI"); That it returns: ArrayList > I want that each element of this table leads to another Beans that takes as input: ArrayList Here is an ex

Re: Com between beans

2012-09-20 Thread Claus Ibsen
He posted this same question on @dev first where we have given him an answer already. On Thu, Sep 20, 2012 at 9:18 AM, kikou1984 wrote: > Hi, > > I have a little problem, I do not know how to implement this idea. > > I explained the idea. > > I have this bean: .bean(EclatCCTIBean.class,"eclatCCT

Re: what jars are needed to use a smtp endpoint in a route

2012-09-20 Thread Claus Ibsen
Hi It depends on the version of Camel. The one you use seems to require spring framework as well. So you need to add those Spring JARs back. On Thu, Sep 20, 2012 at 9:16 AM, Sura Monday wrote: > Hi All, > I have been trying to use a smtp endpoint in a route. > I have camel-mail.jar in my class

Re: Apache Karaf and camel-fop

2012-09-20 Thread Maruan Sahyoun
as a quick update - I asked on the fop mailing list about the state of Apache fop and OSGI before further digging into the issue Maruan

Re: camelcontext cant find class in osgi environment

2012-09-20 Thread Claus Ibsen
What osgi environment are you using? And how do you bootstrap Camel in that? If you use Karaf or SMX with Camel defined in spring-dm or blueprint XML files then that would work out of the box. On Wed, Sep 19, 2012 at 8:47 PM, JacobS wrote: > I am using camel (tried 2.6 and 2.10.1) in an osgi

Re: print a PDF with camel-printer

2012-09-20 Thread jmh
Yes, I wanted to suggest to add this option ;-) Thanks for your help J-M -- View this message in context: http://camel.465427.n5.nabble.com/print-a-PDF-with-camel-printer-tp5719615p5719650.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camelcontext cant find class in osgi environment

2012-09-20 Thread JacobS
I am using virgo web server, and after more digging it looks as though the problem is that I am not importing 'org.springframework.osgi.core'. But if I do import 'org.springframework.osgi.core', I am having other issues in my environment. -- View this message in context: http://camel.465427.n5.

Re: How to mock endpoints taking lots of different query parameters values?

2012-09-20 Thread pmcb55
Hi Claus, I don't think your idea will work for me. In my example above I did statically list all the query parameter combinations, but in my real code they are generated dynamically. So really my route looks more like: from("direct:start").process(new ClassThatGeneratesDynamicUriHeader()).reci

Re: camelcontext cant find class in osgi environment

2012-09-20 Thread Claus Ibsen
On Thu, Sep 20, 2012 at 10:38 AM, JacobS wrote: > I am using virgo web server, and after more digging it looks as though the > problem is that I am not importing 'org.springframework.osgi.core'. > But if I do import 'org.springframework.osgi.core', I am having other issues > in my environment. >

Re: Com between beans

2012-09-20 Thread kikou1984
Hi , i understood , i used the split like this : try { context.addRoutes( new RouteBuilder() { public void configure() { from("file:///D:/fileCamel/in?noop=true") // .bean(InitConcardisBean.class

Re: Com between beans

2012-09-20 Thread Claus Ibsen
On Thu, Sep 20, 2012 at 10:50 AM, kikou1984 wrote: > Hi , > > i understood , i used the split like this : > > try { > context.addRoutes( new RouteBuilder() { > public void configure() { >from("file:///D:/fileCamel/in?noop=

Re: Quartz Scheduling to move files

2012-09-20 Thread Claus Ibsen
Hi See this page http://camel.apache.org/cronscheduledroutepolicy.html You can associate a start and stop time with that policy. On Wed, Sep 19, 2012 at 11:49 PM, Chandra Kalirasa wrote: > Hi Claus, > Thanks for the response. I am using quartz to scheduling and > SimpleScheduledRoutePolicy s

Re: Com between beans

2012-09-20 Thread kikou1984
Thank you for u r answer. I ll explain more :) Here the data : EclatCCTIBean.class -> public static ArrayList > eclatCCTI(Exchange exchange) EclatDBCRBean.class -> ArrayList lstTransac = (ArrayList ) exchange.getIn().getBody(); Suppose that the first Bean contains 5 elements of ArrayList . 1

Re: Fetching two files from FTP at the same time

2012-09-20 Thread Bilgin Ibryam
Unfortunately we cannot open more than one connection at time, so it is not possible to have two consumers reading the two (actually now it is three) files at the same time. IMHO this sounds a bit odd/dangerous way of transferring data between > parties. > There is no good way to tell if these 2 f

Re: ActiveMQ, Camel and Spring

2012-09-20 Thread Claus Ibsen
On Thu, Sep 20, 2012 at 12:18 PM, Gert de Wit wrote: > Using camel-jms now, but not clear to me how to access the message-headers > and body from Spring. Can someone some light on this ? > Yes I did. I referred you to this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html >

Re: Fetching two files from FTP at the same time

2012-09-20 Thread Claus Ibsen
On Thu, Sep 20, 2012 at 12:41 PM, Bilgin Ibryam wrote: > Unfortunately we cannot open more than one connection at time, so it is not > possible to have two consumers reading the two (actually now it is three) > files at the same time. > > IMHO this sounds a bit odd/dangerous way of transferring da

Re: Fetching two files from FTP at the same time

2012-09-20 Thread Bilgin Ibryam
We don't know the exact frequency yet, but it is definitely more than 2 seconds, probably up to minute or two, not sure for now. hhhmmm, I see it is hard to lock/open more than one file over ftp. Then thinking about some tricks, I haven't check it yet, but if ftp consumer supports the LastModifie

Setting dynamic completionInterval in aggregator

2012-09-20 Thread Michael Szalay
Hi all How can I set a dynamic completionInterval in an aggregator? I can set the values for timeout and size using headers like this ... ${header.AggregateCompletionTimeout} ${header.AggregateCompletionSize} Why isn't there an analogous element for here? Invalid content was foun

Re: How to mock endpoints taking lots of different query parameters values?

2012-09-20 Thread Willem.Jiang
Here is the MockComponent that I mentioned, you just need to register it into the camel context, then you can you get what you need :) package org.apache.camel.component.mock; import java.util.HashMap; import java.util.Map; import org.apache.camel.Endpoint; import org.apache.camel.impl.DefaultCo

Fwd: Setting dynamic completionInterval in aggregator

2012-09-20 Thread Michael Szalay
Hi all How can I set a dynamic completionInterval in an aggregator? I can set the values for timeout and size using headers like this ... ${header.AggregateCompletionTimeout} ${header.AggregateCompletionSize} Why isn't there an analogous element for here? I'm using camel 2.10.1.

Re: Setting dynamic completionInterval in aggregator

2012-09-20 Thread Claus Ibsen
Thats not possible. The completion interval and timeout are fixed values. On Thu, Sep 20, 2012 at 1:28 PM, Michael Szalay wrote: > Hi all > > How can I set a dynamic completionInterval in an aggregator? > I can set the values for timeout and size using headers like this > > >... > > > $

Re: Com between beans

2012-09-20 Thread kikou1984
Hi, I tried this code : public void configure() { from("file:///D:/fileCamel/in?noop=true") // .bean(InitConcardisBean.class,"initialisation") .setHeader("TransactionClass",constant("net.awl.bfi

Re: Tutorial 1 fails running with exception

2012-09-20 Thread Babak Vahdat
Hi No, it's not neccessarily at all to add a "jetty-version" property into the POM of this example as there's already one defined being inherited from the parent POM, e.g. for the 2.9.3 release it's "7.5.4.v20111024": https://svn.apache.org/repos/asf/camel/tags/camel-2.9.3/parent/pom.xml Again

Re: How to mock endpoints taking lots of different query parameters values?

2012-09-20 Thread Henryk Konsek
Hi guys, > from("direct:start").process(new > ClassThatGeneratesDynamicUriHeader()).recipientList(header("DynamicURI")); In in opinion using Mock component to validate that class generating the endpoint address for recipient list is not a way to go. What you try to do now is to test whether Re

RE: Quartz Scheduling to move files

2012-09-20 Thread Chandra Kalirasa
Hi Claus, I've used the policy that you have mentioned below, I do not see the files are moved. Am I missing anything in the following code? Thanks Chandra CamelContext context = new DefaultCamelContext(); // add our route to the CamelContext context.addRoutes(new RouteB

Re: Tutorial 1 fails running with exception

2012-09-20 Thread Babak Vahdat
Thanks for the hint, I already updated the Wiki: http://camel.465427.n5.nabble.com/CONF-Apache-Camel-gt-Tutorial-Example-ReportIncident-Part1-td5719683.html And of course you're welcome to dive in and help if you like: http://camel.apache.org/contributing.html Babak domenico wrote > Hi Babak

Re: How to mock endpoints taking lots of different query parameters values?

2012-09-20 Thread Willem Jiang
I think the user wants to set the response message by leveraging the mock endpoint. It could be easier by using sending intercepter. 2012/9/21, Henryk Konsek : > Hi guys, > >> from("direct:start").process(new >> ClassThatGeneratesDynamicUriHeader()).recipientList(header("DynamicURI")); > > In i

Re: Tutorial 1 fails running with exception

2012-09-20 Thread domenico
Hi Babak Actually, the tutorial is where I originally started from. I went through each step and when I hit the above mentioned problem, I tried to run the canned example from Camel 2.9.2 with the same result. BTW, the instructions in the Camel Manual (starting page 131 in the pdf version) do not

Starting route(s) upon completion of another route

2012-09-20 Thread Edwin
Hi Folks, In my application, I have a number of routes that start-up in a specified order. The route that starts first has the responsibility of draining a particular JMS queue of any messages that may exist on the queue. While this route needs to start before the other routes start, this route

Example of scheduling

2012-09-20 Thread surya theva
Hello, I am new to Camel, I am looking for a example that every day at 12 am my application need to login into ftp server to get the encrypted files. Is there any example I can follow? Regards, ST

Re: Example of scheduling

2012-09-20 Thread Willem jiang
Hi, You can take a look at the camel-quratz[1] and camel-ftp[2] component. [1]http://camel.apache.org/quartz.html [2]http://camel.apache.org/ftp2.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjian

Re: Starting route(s) upon completion of another route

2012-09-20 Thread Willem jiang
You can set if the route is started[1] when the camel context is started. Then you can start the route as you want in when the other route is ready. [1]http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red H

Re: Example of scheduling

2012-09-20 Thread Charles Moulliard
And you can also define a Policy for a camel route to start / stop it according to cron scheduling : http://camel.apache.org/scheduledroutepolicy.html http://camel.apache.org/simplescheduledroutepolicy.html http://camel.apache.org/cronscheduledroutepolicy.html On Fri, Sep 21, 2012 at 7:20 AM, W

Re: Example of scheduling

2012-09-20 Thread Jim Talbut
On 20/09/2012 17:53, surya theva wrote: Hello, I am new to Camel, I am looking for a example that every day at 12 am my application need to login into ftp server to get the encrypted files. Is there any example I can follow? Regards, ST I have a separate system that runs Quartz in a clustered c