Hi,
in theory you could configure a generic camel route between two files
and use a property resolver
to route from file1 to file2. Then its a matter of sticking the
properties into the right location on disk
and initialize your Camel route accordingly on startup.
This having said, the JVM could still crash between collecting the file
names and writing the property
file.
As Charles pointed out, a CamelContext is an Object in memory, so it
comes down to having a somewhat dynamic
initializer.
Bet regards
Andreas
On 09/05/2013 07:27 PM, Charles Moulliard wrote:
Guru,
A CamelContext is a java object which is not persisted or replicated
between different JVM. So this is not possible to achieve what you would
like to do. The question here is not the CamelContext or RouteBuilder
object but what you transport (= files). They must be persisted (using
ActiveMQ, RDBMS, NoSQL, ...) to avoid to loose if JVM crashes.
Regards,
Charles
On Thu, Sep 5, 2013 at 7:16 PM, Gnanaguru S <gnanaguru.sattanat...@wipro.com
wrote:
Hello,
I have two file endpoints, I need to route the files using camel routes.
I have a web UI where I will provide the two file endpoints detail, One I
submit the details It has to create a camel context file.
1. I am able to achieve this using route builder, but this is in-memory.
When the JVM crashes, I have to re-run the program. Is there any solution
which keep the camel context even when the JVM gets restarted ?
2. It would be helpful, if I can create routes dynamically in spring dsl.
Any thoughts ?
Thanks
Guru
gnanaguru.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Web-based-camel-route-automation-tp5738797.html
Sent from the Camel - Users mailing list archive at Nabble.com.