I couldn't find an example for our case:
- the route is defined in JAVA DSL
- configuration files are managed by ManagedService
any hints?
Thanks,
Laci
On 02.07.2014 10:55, Achim Nierbeck wrote:
Make sure it's manageable, or re-configurable. This way the camel
route will be stoped and destroyed once the configuration changes.
There should be plenty of samples around for this.
regards, Achim
2014-07-02 10:47 GMT+02:00 Laci Gaspar <[email protected]
<mailto:[email protected]>>:
Thanks for the hint.
I have to come back to my original problem, though.
We are initializing a camel route by spring. The configuration
variables are read by the ManagedService.
When we install a new bundle, it happens, that the camel route is
initialized before the configuration file is read... is there a
way to synchronize this?
Regards,
Laci
On 26.06.2014 16:10, Achim Nierbeck wrote:
No,
one service, one cfg file. You need to make sure you have a
different service for it or use a ManagedService Factory for
it. In that case you'll have a new service instance connected
to another cfg file.
For example:
org.whatever.package-one.cfg
org.whatever.package-two.cfg
will result in two Services, where the first is configured
with the property of config file one and the second with file two.
regards, Achim
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Software Architect / Project Manager / Scrum Master