You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2008/01/30 11:27:24 UTC

[jira] Commented: (SM-1191) Couldn't deploy >1 separate servicemix-camel service-units

    [ https://issues.apache.org/activemq/browse/SM-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41185#action_41185 ] 

Guillaume Nodet commented on SM-1191:
-------------------------------------

It seems the problem comes from the CamelSpringDeployer which deploys an additional endpoints which always has the same name:

http://fisheye6.cenqua.com/browse/servicemix/smx3/trunk/deployables/serviceengines/servicemix-camel/src/main/java/org/apache/servicemix/camel/CamelSpringDeployer.java?r=602826#l108

We need to give the endpoint a unique name, maybe using the service unit name.
Wanna try to create a patch for that ?

> Couldn't deploy >1 separate servicemix-camel service-units
> ----------------------------------------------------------
>
>                 Key: SM-1191
>                 URL: https://issues.apache.org/activemq/browse/SM-1191
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: 3.2
>            Reporter: Piotr Jagielski
>
> When deploying second servicemix-camel service-unit following exception appears:
> 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.updateServiceAssembly(AutoDeploymentService.java:350)
>         at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>         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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.