Re: way to convert multiple csv files to single xml file

2012-08-10 Thread Christian Müller
That's the classical Aggregator EIP [1]. And have a look at our unit tests [2]. [1] http://camel.apache.org/aggregator2.html [2] https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/ Best, Christian On Fri, Aug 10, 2012 at 12:37 PM, Matheen

Re: Need Help converting XML-CSV(flatfile)

2012-08-10 Thread Christian Müller
Have a look at Camel csv [1] and bindy [2]. [1] http://camel.apache.org/csv.html [2] http://camel.apache.org/bindy.html Best, Christian On Tue, Aug 7, 2012 at 12:23 PM, Matheen wrote: > ok..before i had done conversion from CSV to XML...i had used camel bindy > to > do that. > > 1st Converting

Re: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread Pontus Ullgren
Hello, No it seems headers are not copied over by ExchangeHelper.copyResultsPreservePattern(Exchange result, Exchange source). Properties are copied are but not headers. I would consider this a bug so please open a Jira ticket with a test case for it and we will see what the developers think :-)

RE: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread vishal1981
Sorry for the spam but one more question.. The document says, "pollEnrich does not access any data from the current Exchange which means when polling it cannot use any of the existing headers you may have set on the Exchange

RE: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread vishal1981
Thanks for that solution. It works but I see that my FTP thread lingers around after it has done its job. Is this by design since I have created an FTP endpoint? Also is that thread connecting to the FTP URI continously or just sleeping? thanks again, V From: pon

Re: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread Pontus Ullgren
Hello, If you always get only one file (and the file name is the same each time) I think the poll enricher will do the same work for you. from("direct:start") .pollEnrich(ftpUri, 6) .to("direct:result"); // Pontus On Fri, Aug 10, 2012 at 7:37 PM, vishal1981 wrote: > Thanks for the rep

RE: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread vishal1981
Thanks for the reply. I eneded up doing somethign like this based ... Does that sound ok? public class OnDemandFtpConsumer implements Processor { private final CamelContext camelContext; private final String ftpUri; private static final Log logger = LogFactory.getLog(OnDemandFtpConsumer.clas

camel-james-smtp - a component acting as SMTP server

2012-08-10 Thread Marco Zapletal
Dear Camel folks, Norman Maurer did some interesting work in providing a Camel component acting as SMTP server based on Apache James Protocols: https://github.com/normanmaurer/camel-smtp I forked the code and extended the component to leverage additional James SMTP features such as authenti

Re: Camel CXF: In-VM

2012-08-10 Thread Raul Kripalani
Hi, Yes, Camel supports any kind of object as message bodies. Your bean can declare any type of parameter in methods, including business DTOs, e.g.: public class CartHandler { public CartDTO createCartForOrder(OrderDTO order) { ... return cartDto; } } Then instantiate Cart

Re: Camel JDBC 1.6.1

2012-08-10 Thread londonukm
Hi Christian, Thank you for your help, i am unable to upgrade the client so i had to make do with existing functionality. Unfortunately the very nice EIP you mentioned enrich does not exist in my version and the aggregator pattern doesnt quite do it either. I appreciate all these issues have been

Re: Camel CXF: In-VM

2012-08-10 Thread objectorange
I ended up extending org.apache.camel.component.bean.BeanEndpoint then called getCamelContext(). -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-In-VM-tp5716772p5717132.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: way to convert multiple csv files to single xml file

2012-08-10 Thread Matheen
Hi Mueller my problem is with aggregation.I successfully converted all csv files to different xml file by using bindy. But i want all csv files data to a single xml file. -- View this message in context: http://camel.465427.n5.nabble.com/way-to-convert-multiple-csv-files-to-single-xml-file

Re: way to convert multiple csv files to single xml file

2012-08-10 Thread Matheen
Sorry for confusion...i'll try to make it clear At first i had task to convert csv file to xml, i did it using bindy data format..it worked very well. Now i have task to convert two csv files into single XML file, both of the csv files have different fields. All i want to do is create single XML

Re: Need Help converting XML-CSV(flatfile)

2012-08-10 Thread Pontus Ullgren
Hello, For xml to csv I would simply use xslt. // Pontus Send from my phone Den 10 aug 2012 11:58 skrev "Matheen" : > ok..before i had done conversion from CSV to XML...i had used camel bindy > to > do that. > > 1st Converting CSV file to POJO objects. > > 2nd Converting POJO list to XML using xs

Re: way to convert multiple csv files to single xml file

2012-08-10 Thread Christian Müller
You didn't explain what your problem is. The conversion? The aggregation? Something else? Sent from a mobile device Am 10.08.2012 08:35 schrieb "Matheen" : > Hi yogesh > > thanks for reply. > > my scenario is there are two csv files order.csv and order_line.csv > available at a time,now i have to

Re: Invoke camel end point

2012-08-10 Thread Christian Müller
Have a look into the Camel CXF unit tests... Sent from a mobile device Am 09.08.2012 22:09 schrieb "Deepthi" : > Hi Michal, > > how can I invoke it as end point so that entire route gets executed? > > Thanks, > Deepthi > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com

Re: Need Help converting XML-CSV(flatfile)

2012-08-10 Thread Matheen
ok..before i had done conversion from CSV to XML...i had used camel bindy to do that. 1st Converting CSV file to POJO objects. 2nd Converting POJO list to XML using xstream. it is working fine. Source: http://workingwithqueues.blogspot.in/2012/07/converting-csv-to-xml-with-camel-bindy.html http

Re: Camel CXF Exception-Fault Handling

2012-08-10 Thread mabahma
hi Willem thank you for answering this is m y route : http://camel.apache.org/schema/spring";> CXF endpoint is in POJO mode : http://localhost:9000/services"; serviceClass="ch.test.MyServiceimpl">

Re: Camel - ActiveMQ communication failes in Tomcat

2012-08-10 Thread Joe San
It has got something definitely to do with the missing Spring content libraries. In your case it is the spring-web.jar. Seems nothing specific to Camel itself. How are you building your project? If you are using Maven, check your spring-web.jar if it is properly downloaded. One way to do this is t

Re: Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-10 Thread Pontus Ullgren
Hello V, It sound like you are looking for the content enricher (possibly the pollEnricher) [1]. If I remember correctly, content enricher with file or ftp uri, it has the limitation that this only polls one file at the time and not an entire batch. If you are more interested in starting/stopping

Re: Camel Aries Blueprint dependency needs to be changed from 0.3 to 1.0.0 for Karaf 3

2012-08-10 Thread Willem jiang
Currently only camel-blueprint has the dependency of Aries. I don't think there are lots of work need to be do there to support Aries Blueprint 1.0.0. I will create a JIRA for it once the Apache JIRA service is recovered. -- Willem Jiang FuseSource Web: http://www.fusesource.com (http://www.f

Re: Camel Aries Blueprint dependency needs to be changed from 0.3 to 1.0.0 for Karaf 3

2012-08-10 Thread michal.warecki
Hi Sriraman, Thanks for reporting. Can you post this message in Camel-Developers forum? There are guys who will take this into account. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Aries-Blueprint-dependency-needs-to-be-changed-from-0-3-to-1-0-0-for-Karaf-3-tp571710