You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by j55 <jo...@yahoo.com> on 2016/05/16 18:55:15 UTC
How to register camel in netflix karyon server
Hello, anyone please advise me with how to connect camel to netflix karyon
server?
I am doing the below way:
class MyBootstrap extends ServerBootstrap {
@Override
protected void configureBootstrapBinder(final BootstrapBinder binder) {
binder.install(new MyCamelModule());
}
}
but then I am seeing that when google injection notifies its listeners, both
Karyon's InternalLifecycleModule and Camel's GuiceyFruitModule get notified.
Then both of them scan the "com.netflix.karyon.server.base.packages", which
causes the components within the scanned packages getting started twice.
Here is the camel start thread:
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.apache.camel.guice.jsr250.Jsr250Module$1.afterInjection(Jsr250Module.java:48)
at
org.apache.camel.guice.support.GuiceyFruitModule$3$1.afterInjection(GuiceyFruitModule.java:174)
at
com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:119)
and the netflix governator thread:
at java.lang.reflect.Method.invoke(Method.java:497)
at
com.netflix.governator.lifecycle.LifecycleManager.startInstance(LifecycleManager.java:342)
at
com.netflix.governator.lifecycle.LifecycleManager.add(LifecycleManager.java:155)
at
com.netflix.governator.guice.InternalLifecycleModule.processInjectedObject(InternalLifecycleModule.java:101)
at
com.netflix.governator.guice.InternalLifecycleModule.access$000(InternalLifecycleModule.java:44)
at
com.netflix.governator.guice.InternalLifecycleModule$2$1.afterInjection(InternalLifecycleModule.java:76)
at
com.google.inject.internal.MembersInjectorImpl.notifyListeners(MembersInjectorImpl.java:119)
Thanks!
--
View this message in context: http://camel.465427.n5.nabble.com/How-to-register-camel-in-netflix-karyon-server-tp5782675.html
Sent from the Camel - Users mailing list archive at Nabble.com.