org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find package names to be used for classpath scanning for annotated type converters.I searched a little bit and I got something : Camel is using reflection to discover TypeConverters and I would think this is the cause of my error. I would really be interested into knowing if you get likable issues.
Christophe
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
Hi Christophe,isn't that more a question for either Camel or OSGi?
Cheers,√
akka.actor.InvalidActorNameException: actor name camel-supervisor is not unique!
Thanks
Christophe
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
Hi Christophe,What does this registerService method do?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
lazy val context: DefaultCamelContext = {
val ctx = new DefaultCamelContext
if (!settings.JmxStatistics) ctx.disableJMX()
ctx.setName(system.name)
ctx.setStreamCaching(settings.StreamingCache)
ctx.addComponent("akka", new ActorComponent(this, system))
ctx.getTypeConverterRegistry.addTypeConverter(classOf[FiniteDuration], classOf[String], DurationTypeConverter)
ctx
}
Thanks Viktor, you point it out, it's exaclty that.
And by the way, we need to have in an OSGi, at the same time, the CamelExtension and Camel.
Please correct me if I'm wrong but I think you are trying to wrapp Camel into the akka-camel module to provide every Camel Components (and the actor one, of course) in the ActorSystem. You are focusing on people using Camel through Akka and not the reverse. I fully understand this point of view, it's a rich feature allowing Akka application to use Camel Endpoints.
I would need to be able to inject a CamelContext into the CamelExtension (to be able to use a CamelContext from another bundle). For example, this part, coming from akka.camel.internal.DefaultCamel, would be modified.
lazy val context: DefaultCamelContext = {
val ctx = new DefaultCamelContext
if (!settings.JmxStatistics) ctx.disableJMX()
ctx.setName(system.name)
ctx.setStreamCaching(settings.StreamingCache)
ctx.addComponent("akka", new ActorComponent(this, system))
ctx.getTypeConverterRegistry.addTypeConverter(classOf[FiniteDuration], classOf[String], DurationTypeConverter)
ctx
}To use, by example, Dependency Injection to take one existing CamelContext. I know this is not really popular approach, but may be interesting for people that want to add Akka application in OSGi containers containing already CamelContext.
Thanks a lot for your advice and support.If you want more detail, it's a pleasure to discuss the possibilities of other osgification for akka-camel.
All the best,
Christophe
Le vendredi 26 octobre 2012 15:07:35 UTC+2, √ a écrit :There's most likely a problem where you get Camel loaded in multiple ClassLoaders and since the Akka Extension caching relies on the Class-identity you get a conflict.Cheers,√
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
Cordialement,
--
Arjun PANDAY
Developer | Kyriba
Mobile: +33 687 380 180
www.kyriba.com | Twitter | LinkedIn
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/WsEbsOlcmBM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
Hi Patrick,Thanks your response.The akka-osgi bundle I have contains only the akka.osgi package, not the core of akka-actors; I can't remove it or I'm missing the required akka.actor package.