Am 06.10.11 16:04, schrieb Andreas Stiller:
--
Martin Krasser
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
No, currently only one (per classloader). The reason is that Akka's actor registry is a singleton as well (to which the CamelContext is connected via a registry listener). If this wasn't the case it would make sense to support more than CamelContext instance. Alternatively, use OSGi (i.e. different classloaders) for modularization.
Am 06.10.11 16:04, schrieb Andreas Stiller:Martin Krasser
I am using spring (3.0.6) + camel 2.8 + akka-camel 1.2. My spring
configuration is using several spring-contexts each pointing to a
common parent. The reason is, that the application data is partioned
geographically. So i have one spring-context for each geographic
region (or franchise). These child contexts differes only in region
specific beans (like datasources).
Similarily in wanted to start regional camel-contexts and use akka-
camel Actors for the routing. The problem now is the
CamelServiceManager which only allows one CamelContext concurrently:
java.lang.IllegalStateException: current CamelService already
registered
at akka.camel.CamelServiceManager$.register(CamelService.scala:246)
Is there a way around this so that i can use several CamelServices in
parallel ?
--
blog: http://krasserm.blogspot.com
code: http://github.com/krasserm
twitter: http://twitter.com/mrt1nz
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
Indeed, but it will also mean some major structural changes.