Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-836

EndpointExporter should unregister the endpoint with it if failed to create a ServiceAssembly

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2011.01
    • Component/s: servicemix-common
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              ffang Freeman Fang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: