Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
I have tried that before with the manifest, it still says it cannot find org.apache.camel.spring.Main. But thanks anyway. -- View this message in context: http://camel.465427.n5.nabble.com/CSV-Reporting-with-Java-and-XML-tp2641453p2641987.html Sent from the Camel - Users mailing list archive at

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
In reply to what kind of error did I get: I got "Could not find the main class: org.apache.camel.spring.Main. program will now exit. The manifest holds: Main-Class: org.apache.camel.spring.Main. i also tried: Main-Class: Main. -- View this message in context: http://camel.465427.n5.nabble.c

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
How then do you define the database information in the Java class? The examples only show how to do it in the XML camel context. I would however still much prefer to have the program how it is but find a way for the Main.class to be used in the JAR. It seems that it would be a very simple soluti

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
The CamelContext.xml is created. It is used when you run Main.class, but obviously not when I run the Java.class i have created to define the routes. So when you run Main.class, CamelContext.xml and Camelroutes.java are both used, and it works correctly. But I can't seem to get Main.class to be

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
Actually, I have used your advice and followed the example in the link you provided. But I'm assuming that is creating a new CamelContext from within the Java class? That would mean having to add al the enpoints, beans etc to the class. Is there a way to pull in my existing CamelContext? -- Vie

Re: CSV Reporting with Java and XML

2010-08-20 Thread somemightsay
Thanks for the reply. The thing is, I do want to use org.apache.camel.spring.Main to start the route, but how do you allow this class to be the run configuration when running from a JAR? I'm not understanding how I can run it perfectly well in eclipse, yet I cannot choose to use that as the run

CSV Reporting with Java and XML

2010-08-19 Thread somemightsay
Camel 2.4 Spring 3.0.3 I apologise in advance if this is asking to much but I've been looking for help with this for a long time and still cannot find an answer. I have a program which pulls data from a database and reports it to a CSV file. Simple enough. I have the database info defined i

Error Handling in Camel routes

2010-08-12 Thread somemightsay
I've been looking into this for quite a while but still haven't been able to find a definitive answer. How do you add error handling to a route such as the following: from("inputdir") .startupOrder(1) .setBody(constant(query)) .to("jdbc:vprsitdb") .marshal(csv) .to("TargetDir"); Obviously you c

SQL Query Properties file

2010-08-05 Thread somemightsay
Hi, I currently have a program which pulls data from a database and outputs it so a csv file. The SQL Query used is pulled in from a properties file but I would like to be able to define this in a bean within the Camel-Context.xml rather than using pure Java in the java class. Currently I have