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
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
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
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
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
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
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
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
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