I will, thanks!
Regards,
Laci
On 03.07.2014 10:42, Achim Nierbeck wrote:
In that case take a look at how plain OSGi works with
ManagedServiceFactories.
There should be plenty of samples around.
And make sure your JavaDSL does use it.
these I found with Googling for "osgi managed service factory example":
-
http://www.kevindog.com/sat/help/topic/org.eclipse.soda.sat.plugin.doc/books/runtime/cookbook/configuration-admin/managed-service-factory/example.html
-
http://stackoverflow.com/questions/11832204/how-do-you-implement-a-managedservicefactory-in-osgi
please check if it is what you expected :)
regards, Achim
2014-07-03 9:56 GMT+02:00 Laci Gaspar <[email protected]
<mailto:[email protected]>>:
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 <tel:02.07.2014%2010>: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
--
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