[ 
https://issues.apache.org/jira/browse/SMXCOMP-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on SMXCOMP-836 started by Freeman Fang.

> EndpointExporter should unregister the endpoint with it if failed to create a 
> ServiceAssembly
> ---------------------------------------------------------------------------------------------
>
>                 Key: SMXCOMP-836
>                 URL: https://issues.apache.org/jira/browse/SMXCOMP-836
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-common
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 2011.01
>
>
> For example, in the bunlde's beans.xml we have two endpoints, the 
> configuration like
> <endpoint1.....>
> <endpoint2......>
> <bean class="org.apache.servicemix.common.osgi.EndpointExporter" />
> somehow when deploy this bundle, it failed when register endpoint2, so that 
> it failed to create a ServiceAssembly for this bundle, but at this moment 
> endpoint1 already get registered, so if we fix the problem for endpoint2 and 
> build a new bundle to redeploy, we'll see some error like Caused by: 
> java.lang.IllegalStateException: An endpoint is already registered for key: 
> endpoint1
> In this case, we need unregister endpoint1 also if there's something wrong 
> which cause can't create ServiceAssmebly for this bundle

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

Reply via email to