Kevin,
This is a known issue
(https://issues.apache.org/activemq/browse/SM-1191), for which I have
just committed a fix. Could you try building the servicemix-camel
component from trunk locally to get this working on your machine as well?
Gert
Kevin k wrote:
I am trying to deploy 2 service assemblies
Each of the sa's has a camel service unit in it.
When the second sa/camel-su tries to deploy, I get the following error:
<stack-trace><![CDATA[java.lang.IllegalStateException: An endpoint is
already registered for key:
{http://activemq.apache.org/camel/schema/jbi}endpoint:camel:controlBus
at
org.apache.servicemix.common.Registry.registerEndpoint(Registry.java:55)
at
org.apache.servicemix.common.Registry.registerServiceUnit(Registry.java:68)
at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:73)
at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.checkPendingSAs(AutoDeploymentService.java:479)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateComponent(AutoDeploymentService.java:290)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:249)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
]]></stack-trace>
Can there only be one camel su deployed at a time (and I need to put all
routes in the one su), or is there a way to deploy multiple camel su's?
Thanks
-Kevin